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

This commit is contained in:
Jörg Höhle 2010-01-27 17:18:14 +01:00 committed by Alexandre Julliard
parent 9fac9d8ffd
commit 8894da4a6e
1 changed files with 6 additions and 0 deletions

View File

@ -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;