mciqtz: Actually assign result to the output structure.

This commit is contained in:
Andrew Eikum 2012-03-08 15:08:41 -06:00 committed by Alexandre Julliard
parent d5d2f01d3e
commit ad175df21a
1 changed files with 3 additions and 3 deletions

View File

@ -653,11 +653,11 @@ static DWORD MCIQTZ_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_DGV_STATUS_PARMS
LONG state = State_Stopped;
IMediaControl_GetState(wma->pmctrl, -1, &state);
if (state == State_Stopped)
state = MCI_MODE_STOP;
lpParms->dwReturn = MCI_MODE_STOP;
else if (state == State_Running)
state = MCI_MODE_PLAY;
lpParms->dwReturn = MCI_MODE_PLAY;
else if (state == State_Paused)
state = MCI_MODE_PAUSE;
lpParms->dwReturn = MCI_MODE_PAUSE;
break;
}
case MCI_STATUS_MEDIA_PRESENT: