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

winmm: MCI notification is controlled by keyword only.

parent bac64865
......@@ -1433,12 +1433,6 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
goto errCleanUp;
}
/* set up call back */
if (hwndCallback != 0) {
dwFlags |= MCI_NOTIFY;
data[0] = (DWORD)hwndCallback;
}
/* set return information */
switch (retType = MCI_GetReturnType(lpCmd)) {
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)))
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
* ask for device closing while processing the notification mechanism
*/
......
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