mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 22:49:12 +00:00
[WINMM:MIDIMAP] Support Windows XP compatible MIDIMap registry setting (#1240)
CORE-15602
This commit is contained in:
parent
8d15720b31
commit
d893a6c355
1 changed files with 5 additions and 0 deletions
|
@ -239,6 +239,11 @@ static BOOL MIDIMAP_LoadSettings(MIDIMAPDATA* mom)
|
||||||
{
|
{
|
||||||
ret = MIDIMAP_LoadSettingsDefault(mom, buffer);
|
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
|
else
|
||||||
{
|
{
|
||||||
ret = MIDIMAP_LoadSettingsDefault(mom, NULL);
|
ret = MIDIMAP_LoadSettingsDefault(mom, NULL);
|
||||||
|
|
Loading…
Reference in a new issue