Maarten Lankhorst : quartz: Don't clean up in avi decoder if driver isn' t opened.

Alexandre Julliard julliard at winehq.org
Mon Apr 14 17:20:50 CDT 2008


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

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Sat Apr 12 23:04:49 2008 -0700

quartz: Don't clean up in avi decoder if driver isn't opened.

---

 dlls/quartz/avidec.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/quartz/avidec.c b/dlls/quartz/avidec.c
index b8a1b19..83d212c 100644
--- a/dlls/quartz/avidec.c
+++ b/dlls/quartz/avidec.c
@@ -146,11 +146,14 @@ static HRESULT AVIDec_ProcessEnd(TransformFilterImpl* pTransformFilter)
 
     TRACE("(%p)->()\n", This);
 
+    if (!This->hvid)
+        return S_OK;
+
     result = ICDecompressEnd(This->hvid);
     if (result != ICERR_OK)
     {
         ERR("Cannot stop processing (%d)\n", result);
-	return E_FAIL;
+        return E_FAIL;
     }
     return S_OK;
 }




More information about the wine-cvs mailing list