[PATCH] gdi32: Use allways a HANDLE for GDI_ReleaseObj

Detlef Riekenberg wine.dev at web.de
Wed Aug 4 16:32:55 CDT 2010


Not a big Issue, since we use the Parameter only for a TRACE

--
By by .. Detlef
---
 dlls/gdi32/dc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c
index b0002f3..a23413d 100644
--- a/dlls/gdi32/dc.c
+++ b/dlls/gdi32/dc.c
@@ -1445,7 +1445,7 @@ WORD WINAPI SetHookFlags( HDC hdc, WORD flags )
     else if (flags & DCHF_VALIDATEVISRGN || !flags)
         ret = InterlockedExchange( &dc->dirty, 0 );
 
-    GDI_ReleaseObj( dc );
+    GDI_ReleaseObj( hdc );
     return ret;
 }
 
-- 
1.7.0.4




More information about the wine-patches mailing list