midimap: Fix buffer sizes.
This commit is contained in:
parent
23db2636fc
commit
768c5000f3
|
@ -168,7 +168,7 @@ static BOOL MIDIMAP_LoadSettingsScheme(MIDIMAPDATA* mom, const WCHAR* scheme)
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue