Module: wine Branch: master Commit: c8d28f270272133cb17ade93d2fe2dba2ab7e22b URL: https://gitlab.winehq.org/wine/wine/-/commit/c8d28f270272133cb17ade93d2fe2db...
Author: Piotr Caban piotr@codeweavers.com Date: Sat Dec 3 18:42:59 2022 +0100
winprint: Fix datatype validation in PrintDocumentOnPrintProcessor.
---
dlls/winprint/printproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winprint/printproc.c b/dlls/winprint/printproc.c index 8ea3557b3bc..03275bb4afb 100644 --- a/dlls/winprint/printproc.c +++ b/dlls/winprint/printproc.c @@ -111,7 +111,7 @@ HANDLE WINAPI OpenPrintProcessor(WCHAR *port, PRINTPROCESSOROPENDATA *open_data) SetLastError(ERROR_INVALID_PARAMETER); return NULL; } - if (!wcscmp(open_data->pDatatype, L"RAW")) + if (wcscmp(open_data->pDatatype, L"RAW")) { SetLastError(ERROR_INVALID_DATATYPE); return NULL;