Module: wine Branch: master Commit: a79c2fd3792eba13fc8d2038e8e9a97906629836 URL: https://gitlab.winehq.org/wine/wine/-/commit/a79c2fd3792eba13fc8d2038e8e9a97...
Author: Piotr Caban piotr@codeweavers.com Date: Mon May 1 14:19:03 2023 +0200
gdi32: Ignore in_count parameter in Escape() on PASSTHROUGH escape.
---
dlls/gdi32/dc.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c index b1ca342f8e3..531fbb1fe85 100644 --- a/dlls/gdi32/dc.c +++ b/dlls/gdi32/dc.c @@ -637,6 +637,12 @@ INT WINAPI Escape( HDC hdc, INT escape, INT in_count, const char *in_data, void } break; } + + case PASSTHROUGH: + case POSTSCRIPT_PASSTHROUGH: + in_count = *(const WORD *)in_data + sizeof(WORD); + out_data = NULL; + break; }
/* if not handled internally, pass it to the driver */