Huw Davies : gdi32: Remove an unnecessary call to get_dc_ptr().

Alexandre Julliard julliard at winehq.org
Fri Jul 29 10:17:09 CDT 2016


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Jul 29 15:09:31 2016 +0100

gdi32: Remove an unnecessary call to get_dc_ptr().

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

---

 dlls/gdi32/path.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/gdi32/path.c b/dlls/gdi32/path.c
index c204fde..f6b6552 100644
--- a/dlls/gdi32/path.c
+++ b/dlls/gdi32/path.c
@@ -798,12 +798,9 @@ static BOOL pathdrv_CreateDC( PHYSDEV *dev, LPCWSTR driver, LPCWSTR device,
                               LPCWSTR output, const DEVMODEW *devmode )
 {
     struct path_physdev *physdev = HeapAlloc( GetProcessHeap(), 0, sizeof(*physdev) );
-    DC *dc;
 
     if (!physdev) return FALSE;
-    dc = get_dc_ptr( (*dev)->hdc );
     push_dc_driver( dev, &physdev->dev, &path_driver );
-    release_dc_ptr( dc );
     return TRUE;
 }
 




More information about the wine-cvs mailing list