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

oldstable
Alexandre Julliard 2011-03-18 11:47:41 +01:00
parent b701be3c9d
commit 1a34f98017
1 changed files with 3 additions and 5 deletions

View File

@ -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 );
}