Commit 8894da4a authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

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

parent 9fac9d8f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment