mciqtz32: Make sure the device is valid before starting the play.

This commit is contained in:
Christian Costa 2009-04-23 00:03:58 +02:00 committed by Alexandre Julliard
parent aa9550e689
commit 7b1b498a31
1 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,8 @@ static DWORD MCIQTZ_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
return MCIERR_NULL_PARAMETER_BLOCK;
wma = MCIQTZ_mciGetOpenDev(wDevID);
if (!wma)
return MCIERR_INVALID_DEVICE_ID;
hr = IMediaControl_Run(wma->pmctrl);
if (FAILED(hr)) {