mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 05:28:14 +00:00
- GdiIsPlayMetafileDC: function GdiGetHandleUserData might fail
- Simplify code to use GdiGetLDC which takes this into consideration, fixes a umode crash in gdi32_winetest metafile svn path=/trunk/; revision=40379
This commit is contained in:
parent
d730317b41
commit
feca367754
1 changed files with 3 additions and 10 deletions
|
@ -1157,17 +1157,10 @@ BOOL
|
|||
WINAPI
|
||||
GdiIsPlayMetafileDC(HDC hDC)
|
||||
{
|
||||
PDC_ATTR Dc_Attr;
|
||||
PLDC pLDC;
|
||||
|
||||
GdiGetHandleUserData((HGDIOBJ) hDC, GDI_OBJECT_TYPE_DC, (PVOID) &Dc_Attr);
|
||||
if ( Dc_Attr )
|
||||
PLDC pLDC = GdiGetLDC(hDC);
|
||||
if ( pLDC )
|
||||
{
|
||||
pLDC = Dc_Attr->pvLDC;
|
||||
if ( pLDC )
|
||||
{
|
||||
if ( pLDC->Flags & LDC_PLAY_MFDC ) return TRUE;
|
||||
}
|
||||
if ( pLDC->Flags & LDC_PLAY_MFDC ) return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue