winmm: RegQueryValueExW wants the size in bytes, not the size in characters.
Signed-off-by: Carlo Bramini <carlo_bramini@users.sourceforge.net> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
77af98e3df
commit
1cc27eba14
|
@ -140,7 +140,7 @@ static HMMIO get_mmioFromProfile(UINT uFlags, LPCWSTR lpszName)
|
|||
if (err != 0)
|
||||
goto none;
|
||||
}
|
||||
count = sizeof(str)/sizeof(str[0]);
|
||||
count = sizeof(str);
|
||||
err = RegQueryValueExW(hSnd, NULL, 0, &type, (LPBYTE)str, &count);
|
||||
RegCloseKey(hSnd);
|
||||
if (err != 0 || !*str) goto none;
|
||||
|
|
Loading…
Reference in New Issue