Commit 65095933 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

appwiz.cpl: Pass size in bytes to RegQueryValueExW().

parent 47a82140
......@@ -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])
......
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