gdi32: Don't write a metafile record for escapes that require output.

This commit is contained in:
Nicolas Delcros 2007-03-16 11:47:55 +00:00 committed by Alexandre Julliard
parent 9b0686e4a4
commit 427a7638cb
1 changed files with 2 additions and 0 deletions

View File

@ -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;