d3d8: Release the lock instead of locking a second time (Smatch).

Michael Stefaniuc mstefani at redhat.de
Tue Aug 25 16:52:00 CDT 2009


---
 dlls/d3d8/cubetexture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d8/cubetexture.c b/dlls/d3d8/cubetexture.c
index 895f20d..d0b8f72 100644
--- a/dlls/d3d8/cubetexture.c
+++ b/dlls/d3d8/cubetexture.c
@@ -82,7 +82,7 @@ static HRESULT WINAPI IDirect3DCubeTexture8Impl_GetDevice(LPDIRECT3DCUBETEXTURE8
         IWineD3DDevice_GetParent(wined3d_device, (IUnknown **)ppDevice);
         IWineD3DDevice_Release(wined3d_device);
     }
-    wined3d_mutex_lock();
+    wined3d_mutex_unlock();
 
     return hr;
 }
-- 
1.6.4



More information about the wine-patches mailing list