Commit 768c5000 authored by Vitaly Lipatov's avatar Vitaly Lipatov Committed by Alexandre Julliard

midimap: Fix buffer sizes.

parent 23db2636
...@@ -168,7 +168,7 @@ static BOOL MIDIMAP_LoadSettingsScheme(MIDIMAPDATA* mom, const WCHAR* scheme) ...@@ -168,7 +168,7 @@ static BOOL MIDIMAP_LoadSettingsScheme(MIDIMAPDATA* mom, const WCHAR* scheme)
return FALSE; return FALSE;
} }
for (idx = 0; !RegEnumKeyW(hKey, idx, buffer, sizeof(buffer)); idx++) for (idx = 0; !RegEnumKeyW(hKey, idx, buffer, sizeof(buffer)/sizeof(buffer[0])); idx++)
{ {
if (RegOpenKeyW(hKey, buffer, &hPortKey)) continue; if (RegOpenKeyW(hKey, buffer, &hPortKey)) continue;
......
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