From 17e201b44e011ce011e56e45ae1e75176bc94ced Mon Sep 17 00:00:00 2001 From: Zhiyi Zhang Date: Tue, 19 Oct 2021 16:30:58 +0800 Subject: [PATCH] mshtml: Pass size in bytes to RegQueryValueExW(). Signed-off-by: Zhiyi Zhang Signed-off-by: Alexandre Julliard --- dlls/mshtml/nsembed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c index ae94f224fac..4224d6a2ac4 100644 --- a/dlls/mshtml/nsembed.c +++ b/dlls/mshtml/nsembed.c @@ -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)