From 4efbf36cd5f98b0065cb528183e9d947d148ac80 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Wed, 7 May 2008 20:34:12 +0900 Subject: [PATCH] gdi32: Set offPalEntries member of EMREOF to what XP sets it to. --- dlls/gdi32/enhmfdrv/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdi32/enhmfdrv/init.c b/dlls/gdi32/enhmfdrv/init.c index 7e68847756..dafac60811 100644 --- a/dlls/gdi32/enhmfdrv/init.c +++ b/dlls/gdi32/enhmfdrv/init.c @@ -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 ); -- 2.32.0.93.g670b81a890