Commit 4a8cdc2b authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

winspool: Fix FILE: output handling in StartDocDlgW.

parent 6d2bd75c
......@@ -7490,9 +7490,6 @@ static BOOL is_port(const WCHAR *port_list, const WCHAR *output)
{
size_t len;
if (!output)
return FALSE;
if (wcschr(output, ':'))
return TRUE;
......@@ -7532,7 +7529,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