[Wine-patches] gdi32: Correct print job name in CreateSpoolFile (for eterbug #929)

Konstantin Kondratyuk =?iso-8859-1?q?kondratyuk_=CE=C1_etersoft=2Eru?=
Сб Окт 18 15:00:38 MSD 2008


-- 
Best regards,
Konstantin Kondratyuk.
----------- следующая часть -----------
From aaced702f31aa57ec98c78aba8d8022745bbfc17 Mon Sep 17 00:00:00 2001
From: Konstantin Kondratyuk <kondratyuk на etersoft.ru>
Date: Sat, 18 Oct 2008 14:56:44 +0400
Subject: [PATCH] gdi32: Correct print job name in CreateSpoolFile (for eterbug #929)

---
 dlls/gdi32/printdrv16.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/printdrv16.c b/dlls/gdi32/printdrv16.c
index 929cb54..8545829 100644
--- a/dlls/gdi32/printdrv16.c
+++ b/dlls/gdi32/printdrv16.c
@@ -324,7 +324,7 @@ static int CreateSpoolFile(LPCSTR pszOutput, LPCSTR pszTitle)
         RegCloseKey(hkey);
     }
     if (!psCmd[0] && !strncmp("LPR:",pszOutput,4))
-        sprintf(psCmd,"|lpr -T %s -P'%s'", pszTitle, pszOutput+4);
+        sprintf(psCmd,"|lpr -T'%s' -P'%s'", pszTitle, pszOutput+4);
     else
         /* Hack for print to lpr default if output device is empty. TODO: write test and use Windows default device */
         if (*pszOutput == '\0')
-- 
1.5.6.5.GIT



Подробная информация о списке рассылки Wine-patches