[PATCH v2 06/11] gdi32: Remove an unnecessary call to get_dc_ptr().
Huw Davies
huw at codeweavers.com
Fri Jul 29 09:09:31 CDT 2016
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
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;
}
--
2.7.4
More information about the wine-patches
mailing list