mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user