Commit 17e201b4 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

mshtml: Pass size in bytes to RegQueryValueExW().

parent 6a6bdd2c
......@@ -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)
......
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