Commit e9a4dee1 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

mshtml: Make sure system xpcom dll gets loaded.

parent 45ead7fe
......@@ -311,13 +311,17 @@ static void set_environment(LPCWSTR gre_path)
static BOOL load_xpcom(const PRUnichar *gre_path)
{
static const WCHAR strXPCOM[] = {'x','p','c','o','m','.','d','l','l',0};
static const WCHAR strXPCOM[] = {'\\','x','p','c','o','m','.','d','l','l',0};
WCHAR file_name[MAX_PATH];
strcpyW(file_name, gre_path);
strcatW(file_name, strXPCOM);
TRACE("(%s)\n", debugstr_w(gre_path));
TRACE("(%s)\n", debugstr_w(file_name));
set_environment(gre_path);
hXPCOM = LoadLibraryW(strXPCOM);
hXPCOM = LoadLibraryExW(file_name, 0, LOAD_WITH_ALTERED_SEARCH_PATH);
if(!hXPCOM) {
WARN("Could not load XPCOM: %d\n", GetLastError());
return FALSE;
......
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