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:
Zhiyi Zhang 2021-10-19 16:30:58 +08:00 committed by Alexandre Julliard
parent 6a6bdd2cee
commit 17e201b44e
1 changed files with 1 additions and 1 deletions

View File

@ -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)