*/
#include <stdarg.h>
-#include <string.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "mmddk.h"
-#include "winreg.h"
-#include "wine/unicode.h"
-#include "wine/debug.h"
+//#include <string.h>
+//#include <stdlib.h>
+//#include <ctype.h>
+#include <windef.h>
+//#include "winbase.h"
+//#include "wingdi.h"
+#include <winuser.h>
+#include <mmddk.h>
+#include <winreg.h>
+#include <wine/unicode.h>
+#include <wine/debug.h>
/*
* Here's how Windows stores the midiOut mapping information.
{
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);