midimap: Fix buffer sizes.

This commit is contained in:
Vitaly Lipatov 2007-12-01 19:35:59 +03:00 committed by Alexandre Julliard
parent 23db2636fc
commit 768c5000f3

View file

@ -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;