mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:08:30 +00:00
localspl: Truncate output file when printing to file.
This commit is contained in:
parent
b6e502610a
commit
dea831a241
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue