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

winprint: Fix parameters validation in EnumPrintProcessorDatatypesW.

parent 05385575
......@@ -81,7 +81,7 @@ BOOL WINAPI EnumPrintProcessorDatatypesW(WCHAR *server, WCHAR *name, DWORD level
*no = 0;
*needed = sizeof(*info) + sizeof(raw);
if (level != 1 || !datatypes)
if (level != 1 || (size && !datatypes))
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
......
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