mirror of
https://github.com/reactos/wine.git
synced 2025-02-21 13:23:25 +00:00
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 (!(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 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user