Huw Davies : winspool: Initialise portname.
Alexandre Julliard
julliard at winehq.org
Tue Apr 3 12:17:39 CDT 2012
Module: wine
Branch: master
Commit: 25f9d6e33e5f55143e5b7e63944fef901a34d550
URL: http://source.winehq.org/git/wine.git/?a=commit;h=25f9d6e33e5f55143e5b7e63944fef901a34d550
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Apr 3 11:43:38 2012 +0100
winspool: Initialise portname.
---
dlls/winspool.drv/info.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index c50a894..8e3fdf3 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -2309,6 +2309,7 @@ BOOL WINAPI AddJobW(HANDLE hPrinter, DWORD Level, LPBYTE pData, DWORD cbBuf, LPD
len = strlenW(filename);
job->filename = HeapAlloc(GetProcessHeap(), 0, (len + 1) * sizeof(WCHAR));
memcpy(job->filename, filename, (len + 1) * sizeof(WCHAR));
+ job->portname = NULL;
job->document_title = strdupW(default_doc_title);
job->printer_name = strdupW(printer->name);
job->devmode = dup_devmode( printer->devmode );
More information about the wine-cvs
mailing list