gdi32: Remove an unnecessary call to get_dc_ptr().
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e767a60790
commit
637c99f675
|
@ -798,12 +798,9 @@ static BOOL pathdrv_CreateDC( PHYSDEV *dev, LPCWSTR driver, LPCWSTR device,
|
||||||
LPCWSTR output, const DEVMODEW *devmode )
|
LPCWSTR output, const DEVMODEW *devmode )
|
||||||
{
|
{
|
||||||
struct path_physdev *physdev = HeapAlloc( GetProcessHeap(), 0, sizeof(*physdev) );
|
struct path_physdev *physdev = HeapAlloc( GetProcessHeap(), 0, sizeof(*physdev) );
|
||||||
DC *dc;
|
|
||||||
|
|
||||||
if (!physdev) return FALSE;
|
if (!physdev) return FALSE;
|
||||||
dc = get_dc_ptr( (*dev)->hdc );
|
|
||||||
push_dc_driver( dev, &physdev->dev, &path_driver );
|
push_dc_driver( dev, &physdev->dev, &path_driver );
|
||||||
release_dc_ptr( dc );
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue