[WINMM:MIDIMAP] Support Windows XP compatible MIDIMap registry setting (#1240)

CORE-15602
This commit is contained in:
Stanislav Motylkov 2019-01-20 00:48:22 +03:00 committed by Hermès BÉLUSCA - MAÏTO
parent 8d15720b31
commit d893a6c355

View file

@ -239,6 +239,11 @@ static BOOL MIDIMAP_LoadSettings(MIDIMAPDATA* mom)
{
ret = MIDIMAP_LoadSettingsDefault(mom, buffer);
}
else if (!RegQueryValueExW(hKey, L"szPname", 0, &type, (void*)buffer, &size) && *buffer)
{
/* Windows XP and higher setting */
ret = MIDIMAP_LoadSettingsDefault(mom, buffer);
}
else
{
ret = MIDIMAP_LoadSettingsDefault(mom, NULL);