From: Piotr Caban piotr@codeweavers.com
--- 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 d7d9cce9d93..8ea3557b3bc 100644 --- a/dlls/winprint/printproc.c +++ b/dlls/winprint/printproc.c @@ -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;