mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:57:19 +00:00
midimap: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
762d14e897
commit
5138074d8c
|
@ -172,7 +172,7 @@ static BOOL MIDIMAP_LoadSettingsScheme(MIDIMAPDATA* mom, const WCHAR* scheme)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (idx = 0; !RegEnumKeyW(hKey, idx, buffer, sizeof(buffer)/sizeof(buffer[0])); idx++)
|
for (idx = 0; !RegEnumKeyW(hKey, idx, buffer, ARRAY_SIZE(buffer)); idx++)
|
||||||
{
|
{
|
||||||
if (RegOpenKeyW(hKey, buffer, &hPortKey)) continue;
|
if (RegOpenKeyW(hKey, buffer, &hPortKey)) continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue