https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d893a6c3558994406c786d72b26f0c4f4a33f071

commit d893a6c3558994406c786d72b26f0c4f4a33f071
Author:     Stanislav Motylkov <[email protected]>
AuthorDate: Sun Jan 20 00:48:22 2019 +0300
Commit:     Hermès BÉLUSCA - MAÏTO <[email protected]>
CommitDate: Sat Jan 19 22:48:22 2019 +0100

    [WINMM:MIDIMAP] Support Windows XP compatible MIDIMap registry setting 
(#1240)
    
    CORE-15602
---
 dll/win32/winmm/midimap/midimap.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dll/win32/winmm/midimap/midimap.c 
b/dll/win32/winmm/midimap/midimap.c
index e8214a63b4..fd9ecae485 100644
--- a/dll/win32/winmm/midimap/midimap.c
+++ b/dll/win32/winmm/midimap/midimap.c
@@ -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);

Reply via email to