gdi32: Set offPalEntries member of EMREOF to what XP sets it to.

This commit is contained in:
Dmitry Timoshkov 2008-05-07 20:34:12 +09:00 committed by Alexandre Julliard
parent 9227e25660
commit 4efbf36cd5

View file

@ -457,7 +457,7 @@ HENHMETAFILE WINAPI CloseEnhMetaFile(HDC hdc) /* [in] metafile DC */
emr.emr.iType = EMR_EOF;
emr.emr.nSize = sizeof(emr);
emr.nPalEntries = 0;
emr.offPalEntries = 0;
emr.offPalEntries = FIELD_OFFSET(EMREOF, nSizeLast);
emr.nSizeLast = emr.emr.nSize;
EMFDRV_WriteRecord( dc->physDev, &emr.emr );