winmm: MCI notification is controlled by keyword only.

This commit is contained in:
Jörg Höhle 2009-10-13 08:00:03 +02:00 committed by Alexandre Julliard
parent bac6486520
commit d48d923df3

View file

@ -1433,12 +1433,6 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
goto errCleanUp; goto errCleanUp;
} }
/* set up call back */
if (hwndCallback != 0) {
dwFlags |= MCI_NOTIFY;
data[0] = (DWORD)hwndCallback;
}
/* set return information */ /* set return information */
switch (retType = MCI_GetReturnType(lpCmd)) { switch (retType = MCI_GetReturnType(lpCmd)) {
case 0: offset = 1; break; case 0: offset = 1; break;
@ -1454,6 +1448,11 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
if ((dwRet = MCI_ParseOptArgs(data, offset, lpCmd, args, &dwFlags))) if ((dwRet = MCI_ParseOptArgs(data, offset, lpCmd, args, &dwFlags)))
goto errCleanUp; goto errCleanUp;
/* set up call back */
if (dwFlags & MCI_NOTIFY) {
data[0] = (DWORD)hwndCallback;
}
/* FIXME: the command should get it's own notification window set up and /* FIXME: the command should get it's own notification window set up and
* ask for device closing while processing the notification mechanism * ask for device closing while processing the notification mechanism
*/ */