Jörg Höhle : midimap: Refuse to open when asked for yet unimplemented callbacks.

Alexandre Julliard julliard at winehq.org
Thu Jan 28 11:15:34 CST 2010


Module: wine
Branch: master
Commit: 8894da4a6e3d6a0f5d15d5770ef8102162f6facc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8894da4a6e3d6a0f5d15d5770ef8102162f6facc

Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date:   Wed Jan 27 17:18:14 2010 +0100

midimap: Refuse to open when asked for yet unimplemented callbacks.

---

 dlls/midimap/midimap.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/midimap/midimap.c b/dlls/midimap/midimap.c
index 120a054..f429497 100644
--- a/dlls/midimap/midimap.c
+++ b/dlls/midimap/midimap.c
@@ -266,6 +266,12 @@ static DWORD modOpen(DWORD_PTR *lpdwUser, LPMIDIOPENDESC lpDesc, DWORD dwFlags)
 
     if (!mom) return MMSYSERR_NOMEM;
 
+    if (HIWORD(dwFlags & CALLBACK_TYPEMASK)) {
+	FIXME("NIY callback flags %08x\n", dwFlags);
+	HeapFree(GetProcessHeap(), 0, mom);
+	return MMSYSERR_INVALFLAG;
+    }
+
     if (MIDIMAP_LoadSettings(mom))
     {
 	*lpdwUser = (DWORD_PTR)mom;




More information about the wine-cvs mailing list