localspl: Truncate output file when printing to file.

This commit is contained in:
Piotr Caban 2023-10-12 15:00:54 +02:00 committed by Alexandre Julliard
parent b6e502610a
commit dea831a241

View file

@ -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;
}