Huw Davies : winspool.drv: Allow for spaces in either the printer name or the spool file.

Alexandre Julliard julliard at winehq.org
Tue Oct 5 14:41:47 CDT 2010


Module: wine
Branch: stable
Commit: 981a1844ffad0b75d6aab96ee019069682e51fc8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=981a1844ffad0b75d6aab96ee019069682e51fc8

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Aug 25 11:47:53 2010 +0100

winspool.drv: Allow for spaces in either the printer name or the spool file.
(cherry picked from commit 246f741eb31799fec82cfb2908e34a330059f718)

---

 dlls/winspool.drv/info.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 7bf1bcb..8c6486b 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -7205,7 +7205,7 @@ BOOL WINAPI GetJobW(HANDLE hPrinter, DWORD JobId, DWORD Level, LPBYTE pJob,
 static BOOL schedule_lpr(LPCWSTR printer_name, LPCWSTR filename)
 {
     char *unixname, *queue, *cmd;
-    char fmt[] = "lpr -P%s %s";
+    char fmt[] = "lpr -P'%s' '%s'";
     DWORD len;
     int r;
 




More information about the wine-cvs mailing list