appwiz.cpl: 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:31 +08:00 committed by Alexandre Julliard
parent 47a821400a
commit 65095933fd
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ static void SetInfoDialogText(HKEY hKey, LPCWSTR lpKeyName, LPCWSTR lpAltMessage
}
else
{
buflen = MAX_STRING_LEN;
buflen = sizeof(buf);
if ((RegQueryValueExW(hKey, lpKeyName, 0, 0, (LPBYTE) buf, &buflen) ==
ERROR_SUCCESS) && buf[0])