mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 11:14:06 +00:00
winprint: Fix parameters validation in EnumPrintProcessorDatatypesW.
This commit is contained in:
parent
0538557512
commit
a98fb06a5b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue