Commit f170f5d8 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

advpack: Stop processing if there was an error registering an OCX.

parent 5275b1b8
......@@ -160,13 +160,21 @@ static HRESULT register_ocxs_callback(HINF hinf, PCWSTR field, void *arg)
continue;
hm = LoadLibraryExW(buffer, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
if (!hm)
continue;
if (hm)
{
if (do_ocx_reg(hm, TRUE))
hr = E_FAIL;
if (do_ocx_reg(hm, TRUE))
FreeLibrary(hm);
}
else
hr = E_FAIL;
FreeLibrary(hm);
if (FAILED(hr))
{
/* FIXME: display a message box */
break;
}
}
return hr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment