Nikolay Sivov : gdi32: Fix a typo in failure path (Coverity).

Alexandre Julliard julliard at winehq.org
Wed Sep 15 16:21:31 CDT 2021


Module: wine
Branch: master
Commit: 2b99a4ebb9ceeb3e4d9ac6a6cdabb7817ffc6ef4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2b99a4ebb9ceeb3e4d9ac6a6cdabb7817ffc6ef4

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Sep 15 15:16:26 2021 +0300

gdi32: Fix a typo in failure path (Coverity).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdi32/dc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c
index 1c304f008a7..ec1699533c7 100644
--- a/dlls/gdi32/dc.c
+++ b/dlls/gdi32/dc.c
@@ -125,7 +125,7 @@ DC *alloc_dc_ptr( DWORD magic )
     if (!(dc = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*dc) ))) return NULL;
     if (!(dc->attr = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*dc->attr))))
     {
-        HeapFree( GetProcessHeap(), 0, dc->attr );
+        HeapFree( GetProcessHeap(), 0, dc );
         return NULL;
     }
 




More information about the wine-cvs mailing list