[PATCH 0/1] MR4083: localspl: Truncate output file when printing to file.
From: Piotr Caban <piotr(a)codeweavers.com> --- dlls/localspl/localmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/localspl/localmon.c b/dlls/localspl/localmon.c index e1e7153600d..bd95f22d979 100644 --- a/dlls/localspl/localmon.c +++ b/dlls/localspl/localmon.c @@ -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; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4083
This merge request was approved by Huw Davies. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4083
participants (3)
-
Huw Davies (@huw) -
Piotr Caban -
Piotr Caban (@piotr)