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

winspool: Fix FILE: output handling in StartDocDlgW.

(cherry picked from commit 4a8cdc2b)
parent 8aaf665b
......@@ -7491,9 +7491,6 @@ static BOOL is_port(const WCHAR *port_list, const WCHAR *output)
{
size_t len;
if (!output)
return FALSE;
if (wcschr(output, ':'))
return TRUE;
......@@ -7533,7 +7530,7 @@ LPWSTR WINAPI StartDocDlgW( HANDLE hPrinter, DOCINFOW *doc )
/* Check whether default port is FILE: */
b = !doc->lpszOutput && (!pi5->pPortName || wcscmp( pi5->pPortName, L"FILE:" ));
if (!b)
if (!b && doc->lpszOutput && wcscmp( doc->lpszOutput, L"FILE:" ))
b = is_port(pi5->pPortName, doc->lpszOutput);
free(pi5);
if (b)
......
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