Commit 1a34f980 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Find the original driver by checking the CreateDC entry point in CreateCompatibleDC.

parent b701be3c
......@@ -752,11 +752,9 @@ HDC WINAPI CreateCompatibleDC( HDC hdc )
if (hdc)
{
if (!(origDC = get_dc_ptr( hdc ))) return 0;
if (GetObjectType( hdc ) == OBJ_DC)
{
physDev = origDC->physDev;
funcs = physDev->funcs;
}
physDev = GET_DC_PHYSDEV( origDC, pCreateDC );
if (physDev != &origDC->nulldrv) funcs = physDev->funcs;
else physDev = NULL;
release_dc_ptr( origDC );
}
......
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