mshtml: Pass size in bytes to RegQueryValueExW().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6a6bdd2cee
commit
17e201b44e
|
@ -707,7 +707,7 @@ static WCHAR *find_wine_gecko_reg(void)
|
|||
if(res != ERROR_SUCCESS)
|
||||
return NULL;
|
||||
|
||||
size = ARRAY_SIZE(buffer);
|
||||
size = sizeof(buffer);
|
||||
res = RegQueryValueExW(hkey, L"GeckoPath", NULL, &type, (LPBYTE)buffer, &size);
|
||||
RegCloseKey(hkey);
|
||||
if(res != ERROR_SUCCESS || type != REG_SZ)
|
||||
|
|
Loading…
Reference in New Issue