mshtml: Print wine_gecko version in load_wine_gecko.
This commit is contained in:
parent
cdbab7ddf2
commit
b0bffdc58b
@ -239,6 +239,33 @@ static BOOL load_mozctl(PRUnichar *gre_path)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void check_version(LPCWSTR gre_path)
|
||||||
|
{
|
||||||
|
WCHAR file_name[MAX_PATH];
|
||||||
|
char version[128];
|
||||||
|
DWORD read=0;
|
||||||
|
HANDLE hfile;
|
||||||
|
|
||||||
|
static const WCHAR wszVersion[] = {'\\','V','E','R','S','I','O','N',0};
|
||||||
|
|
||||||
|
strcpyW(file_name, gre_path);
|
||||||
|
strcatW(file_name, wszVersion);
|
||||||
|
|
||||||
|
hfile = CreateFileW(file_name, GENERIC_READ, FILE_SHARE_READ, NULL,
|
||||||
|
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||||
|
if(hfile == INVALID_HANDLE_VALUE) {
|
||||||
|
TRACE("unknown version\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ReadFile(hfile, version, sizeof(version), &read, NULL);
|
||||||
|
version[read] = 0;
|
||||||
|
|
||||||
|
TRACE("%s\n", debugstr_a(version));
|
||||||
|
|
||||||
|
CloseHandle(hfile);
|
||||||
|
}
|
||||||
|
|
||||||
static BOOL load_wine_gecko(PRUnichar *gre_path)
|
static BOOL load_wine_gecko(PRUnichar *gre_path)
|
||||||
{
|
{
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
@ -259,6 +286,9 @@ static BOOL load_wine_gecko(PRUnichar *gre_path)
|
|||||||
if(res != ERROR_SUCCESS || type != REG_SZ)
|
if(res != ERROR_SUCCESS || type != REG_SZ)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if(TRACE_ON(mshtml))
|
||||||
|
check_version(gre_path);
|
||||||
|
|
||||||
return load_xpcom(gre_path);
|
return load_xpcom(gre_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user