gdi32: Don't write a metafile record for escapes that require output.
This commit is contained in:
parent
9b0686e4a4
commit
427a7638cb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue