From dc4d607062134fc32fb7f3e433b60e2c306a8f07 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Mon, 27 Sep 2010 13:29:39 -0500 Subject: [PATCH] mciqtz32: Do not allow MCIQTZ_mciUpdate to interrupt a playing video. --- dlls/mciqtz32/mciqtz.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/mciqtz32/mciqtz.c b/dlls/mciqtz32/mciqtz.c index fef27e79640..aca7bf44ba5 100644 --- a/dlls/mciqtz32/mciqtz.c +++ b/dlls/mciqtz32/mciqtz.c @@ -822,6 +822,9 @@ static DWORD MCIQTZ_mciUpdate(UINT wDevID, DWORD dwFlags, LPMCI_DGV_UPDATE_PARMS LONG visible = OATRUE; res = MCIERR_INTERNAL; + IMediaControl_GetState(wma->pmctrl, -1, &state); + if (state == State_Running) + return MCIERR_UNSUPPORTED_FUNCTION; /* If in stopped state, nothing has been drawn to screen * moving to pause, which is needed for the old dib renderer, will result * in a single frame drawn, so hide the window here */