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:
parent
47a821400a
commit
65095933fd
|
@ -542,7 +542,7 @@ static void SetInfoDialogText(HKEY hKey, LPCWSTR lpKeyName, LPCWSTR lpAltMessage
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buflen = MAX_STRING_LEN;
|
buflen = sizeof(buf);
|
||||||
|
|
||||||
if ((RegQueryValueExW(hKey, lpKeyName, 0, 0, (LPBYTE) buf, &buflen) ==
|
if ((RegQueryValueExW(hKey, lpKeyName, 0, 0, (LPBYTE) buf, &buflen) ==
|
||||||
ERROR_SUCCESS) && buf[0])
|
ERROR_SUCCESS) && buf[0])
|
||||||
|
|
Loading…
Reference in New Issue