Commit 469e4a5c authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Directly register the typelib if it's not embedded in a PE module.

parent dfec94c1
......@@ -2994,7 +2994,10 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
MSICOMPONENT *comp;
MSIFILE *file;
typelib_struct tl_struct;
ITypeLib *tlib;
HMODULE module;
HRESULT hr;
static const WCHAR szTYPELIB[] = {'T','Y','P','E','L','I','B',0};
component = MSI_RecordGetString(row,3);
......@@ -3063,7 +3066,16 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
msi_free(tl_struct.source);
}
else
ERR("Could not load file! %s\n", debugstr_w(file->TargetPath));
{
hr = LoadTypeLibEx(file->TargetPath, REGKIND_REGISTER, &tlib);
if (FAILED(hr))
{
ERR("Failed to load type library: %08x\n", hr);
return ERROR_FUNCTION_FAILED;
}
ITypeLib_Release(tlib);
}
return ERROR_SUCCESS;
}
......
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