Nikolay Sivov : mciqtz: Call interface methods properly.

Alexandre Julliard julliard at winehq.org
Mon Aug 20 14:16:17 CDT 2012


Module: wine
Branch: master
Commit: 7f4d634e80dd30859b750ca04d19bb244e276174
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7f4d634e80dd30859b750ca04d19bb244e276174

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Aug 19 19:53:45 2012 +0400

mciqtz: Call interface methods properly.

---

 dlls/mciqtz32/mciqtz.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/mciqtz32/mciqtz.c b/dlls/mciqtz32/mciqtz.c
index b05e681..546f3ed 100644
--- a/dlls/mciqtz32/mciqtz.c
+++ b/dlls/mciqtz32/mciqtz.c
@@ -241,13 +241,13 @@ static DWORD MCIQTZ_mciOpen(UINT wDevID, DWORD dwFlags,
 
 err:
     if (wma->vidbasic)
-        IUnknown_Release(wma->vidbasic);
+        IBasicVideo_Release(wma->vidbasic);
     wma->vidbasic = NULL;
     if (wma->seek)
-        IUnknown_Release(wma->seek);
+        IMediaSeeking_Release(wma->seek);
     wma->seek = NULL;
     if (wma->vidwin)
-        IUnknown_Release(wma->vidwin);
+        IVideoWindow_Release(wma->vidwin);
     wma->vidwin = NULL;
     if (wma->pgraph)
         IGraphBuilder_Release(wma->pgraph);
@@ -282,9 +282,9 @@ static DWORD MCIQTZ_mciClose(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpP
     MCIQTZ_mciStop(wDevID, MCI_WAIT, NULL);
 
     if (wma->opened) {
-        IUnknown_Release(wma->vidwin);
-        IUnknown_Release(wma->vidbasic);
-        IUnknown_Release(wma->seek);
+        IVideoWindow_Release(wma->vidwin);
+        IBasicVideo_Release(wma->vidbasic);
+        IMediaSeeking_Release(wma->seek);
         IMediaEvent_Release(wma->mevent);
         IGraphBuilder_Release(wma->pgraph);
         IMediaControl_Release(wma->pmctrl);




More information about the wine-cvs mailing list