[PATCH 7/9] gdi32: Silence a common warning

Maarten Lankhorst m.b.lankhorst at gmail.com
Wed Nov 25 03:27:58 CST 2009


---
 dlls/gdi32/gdiobj.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/gdiobj.c b/dlls/gdi32/gdiobj.c
index 6ba4a4c..d902da1 100644
--- a/dlls/gdi32/gdiobj.c
+++ b/dlls/gdi32/gdiobj.c
@@ -715,7 +715,8 @@ void *GDI_GetObjPtr( HGDIOBJ handle, WORD type )
     if (!ptr)
     {
         _LeaveSysLevel( &GDI_level );
-        WARN( "Invalid handle %p\n", handle );
+        if (handle)
+            WARN( "Invalid handle %p\n", handle );
     }
     else TRACE("(%p): enter %d\n", handle, GDI_level.crst.RecursionCount);
 
-- 
1.6.5.3


--------------070900070408060903080707--



More information about the wine-patches mailing list