From 246f741eb31799fec82cfb2908e34a330059f718 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Wed, 25 Aug 2010 11:47:53 +0100 Subject: [PATCH] winspool.drv: Allow for spaces in either the printer name or the spool file. --- dlls/winspool.drv/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index 7bf1bcbb7cc..8c6486bad33 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; -- 2.11.4.GIT