Commit 1cc27eba authored by Carlo Bramini's avatar Carlo Bramini Committed by Alexandre Julliard

winmm: RegQueryValueExW wants the size in bytes, not the size in characters.

parent 77af98e3
...@@ -140,7 +140,7 @@ static HMMIO get_mmioFromProfile(UINT uFlags, LPCWSTR lpszName) ...@@ -140,7 +140,7 @@ static HMMIO get_mmioFromProfile(UINT uFlags, LPCWSTR lpszName)
if (err != 0) if (err != 0)
goto none; goto none;
} }
count = sizeof(str)/sizeof(str[0]); count = sizeof(str);
err = RegQueryValueExW(hSnd, NULL, 0, &type, (LPBYTE)str, &count); err = RegQueryValueExW(hSnd, NULL, 0, &type, (LPBYTE)str, &count);
RegCloseKey(hSnd); RegCloseKey(hSnd);
if (err != 0 || !*str) goto none; if (err != 0 || !*str) goto none;
......
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