Commit c8d28f27 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

winprint: Fix datatype validation in PrintDocumentOnPrintProcessor.

parent a98fb06a
...@@ -111,7 +111,7 @@ HANDLE WINAPI OpenPrintProcessor(WCHAR *port, PRINTPROCESSOROPENDATA *open_data) ...@@ -111,7 +111,7 @@ HANDLE WINAPI OpenPrintProcessor(WCHAR *port, PRINTPROCESSOROPENDATA *open_data)
SetLastError(ERROR_INVALID_PARAMETER); SetLastError(ERROR_INVALID_PARAMETER);
return NULL; return NULL;
} }
if (!wcscmp(open_data->pDatatype, L"RAW")) if (wcscmp(open_data->pDatatype, L"RAW"))
{ {
SetLastError(ERROR_INVALID_DATATYPE); SetLastError(ERROR_INVALID_DATATYPE);
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment