gdi32: Find the original driver by checking the CreateDC entry point in CreateCompatibleDC.
This commit is contained in:
parent
b701be3c9d
commit
1a34f98017
@ -752,11 +752,9 @@ HDC WINAPI CreateCompatibleDC( HDC hdc )
|
|||||||
if (hdc)
|
if (hdc)
|
||||||
{
|
{
|
||||||
if (!(origDC = get_dc_ptr( hdc ))) return 0;
|
if (!(origDC = get_dc_ptr( hdc ))) return 0;
|
||||||
if (GetObjectType( hdc ) == OBJ_DC)
|
physDev = GET_DC_PHYSDEV( origDC, pCreateDC );
|
||||||
{
|
if (physDev != &origDC->nulldrv) funcs = physDev->funcs;
|
||||||
physDev = origDC->physDev;
|
else physDev = NULL;
|
||||||
funcs = physDev->funcs;
|
|
||||||
}
|
|
||||||
release_dc_ptr( origDC );
|
release_dc_ptr( origDC );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user