Commit 637c99f6 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Remove an unnecessary call to get_dc_ptr().

parent e767a607
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment