Module: wine Branch: master Commit: 246f741eb31799fec82cfb2908e34a330059f718 URL: http://source.winehq.org/git/wine.git/?a=commit;h=246f741eb31799fec82cfb2908...
Author: Huw Davies huw@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.
---
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;