mciwave: Send notification after everything else.

This commit is contained in:
Jörg Höhle 2009-10-17 16:41:10 +02:00 committed by Alexandre Julliard
parent 3fc7da7f5e
commit 7d002f228c
1 changed files with 4 additions and 4 deletions

View File

@ -884,14 +884,14 @@ cleanUp:
}
CloseHandle(wmw->hEvent);
wmw->dwStatus = MCI_MODE_STOP;
if (lpParms && (dwFlags & MCI_NOTIFY)) {
mciDriverNotify(HWND_32(LOWORD(lpParms->dwCallback)),
wmw->openParms.wDeviceID,
dwRet ? MCI_NOTIFY_FAILURE : MCI_NOTIFY_SUCCESSFUL);
}
wmw->dwStatus = MCI_MODE_STOP;
return dwRet;
}
@ -1108,14 +1108,14 @@ cleanUp:
}
CloseHandle(wmw->hEvent);
wmw->dwStatus = MCI_MODE_STOP;
if (lpParms && (dwFlags & MCI_NOTIFY)) {
mciDriverNotify(HWND_32(LOWORD(lpParms->dwCallback)),
wmw->openParms.wDeviceID,
dwRet ? MCI_NOTIFY_FAILURE : MCI_NOTIFY_SUCCESSFUL);
}
wmw->dwStatus = MCI_MODE_STOP;
return dwRet;
}