mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
Fixed crash due to invalid pointer.
This commit is contained in:
parent
534d41025c
commit
a904e16faa
@ -110,8 +110,8 @@ HMETAFILE16 MF_Create_HMETAFILE16(METAHEADER *mh)
|
||||
*/
|
||||
static METAHEADER *MF_GetMetaHeader( HMETAFILE hmf )
|
||||
{
|
||||
METAFILEOBJ *metaObj = (METAFILEOBJ *)GDI_GetObjPtr( hmf, METAFILE_MAGIC );
|
||||
return metaObj->mh;
|
||||
METAFILEOBJ * metaObj = (METAFILEOBJ *)GDI_GetObjPtr( hmf, METAFILE_MAGIC );
|
||||
return metaObj ? metaObj->mh : 0;
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user