Commit a904e16f authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard

Fixed crash due to invalid pointer.

parent 534d4102
......@@ -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;
}
/******************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment