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

localspl: Truncate output file when printing to file.

parent b6e50261
......@@ -542,7 +542,7 @@ static BOOL WINAPI localmon_StartDocPort(HANDLE hport, WCHAR *printer_name,
}
port->hfile = CreateFileW(doc_info->pOutputFile, GENERIC_WRITE,
FILE_SHARE_READ, NULL, OPEN_ALWAYS, 0, NULL);
FILE_SHARE_READ, NULL, CREATE_ALWAYS, 0, NULL);
return port->hfile != INVALID_HANDLE_VALUE;
}
......
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