From 427a7638cb4be2b4ca39e74b0a95755f61f5a43f Mon Sep 17 00:00:00 2001 From: Nicolas Delcros Date: Fri, 16 Mar 2007 11:47:55 +0000 Subject: [PATCH] gdi32: Don't write a metafile record for escapes that require output. --- dlls/gdi32/mfdrv/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/gdi32/mfdrv/init.c b/dlls/gdi32/mfdrv/init.c index 036b7b51b18..e939ce13925 100644 --- a/dlls/gdi32/mfdrv/init.c +++ b/dlls/gdi32/mfdrv/init.c @@ -583,6 +583,8 @@ INT MFDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data, DWORD len; INT ret; + if (cbOutput) return 0; /* escapes that require output cannot work in metafiles */ + len = sizeof(*mr) + sizeof(WORD) + ((cbInput + 1) & ~1); mr = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len); mr->rdSize = len / 2;