[Wine-patches] gdi32: Add job name field into CreateSpoolFile (fix eterbug #929)
Konstantin Kondratyuk
=?iso-8859-1?q?kondratyuk_=CE=C1_etersoft=2Eru?=
Пн Окт 13 11:16:27 MSD 2008
--
Best regards,
Konstantin Kondratyuk.
----------- следующая часть -----------
From afb676dff8281f1fbccad8487e484f254d18e86b Mon Sep 17 00:00:00 2001
From: Konstantin Kondratyuk <kondratyuk на etersoft.ru>
Date: Mon, 13 Oct 2008 11:05:35 +0400
Subject: [PATCH] gdi32: Add job name field into CreateSpoolFile (fix eterbug #929)
---
dlls/gdi32/printdrv16.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/gdi32/printdrv16.c b/dlls/gdi32/printdrv16.c
index 27ebba1..929cb54 100644
--- a/dlls/gdi32/printdrv16.c
+++ b/dlls/gdi32/printdrv16.c
@@ -303,7 +303,7 @@ static PPRINTJOB FindPrintJobFromHandle(HANDLE16 hHandle)
return NULL;
}
-static int CreateSpoolFile(LPCSTR pszOutput)
+static int CreateSpoolFile(LPCSTR pszOutput, LPCSTR pszTitle)
{
int fd=-1;
char psCmd[1024];
@@ -324,7 +324,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
RegCloseKey(hkey);
}
if (!psCmd[0] && !strncmp("LPR:",pszOutput,4))
- sprintf(psCmd,"|lpr -P'%s'",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')
@@ -447,7 +447,7 @@ HPJOB16 WINAPI OpenJob16(LPCSTR lpOutput, LPCSTR lpTitle, HDC16 hDC)
TRACE("'%s' '%s' %04x\n", lpOutput, lpTitle, hDC);
/* Try and create a spool file */
- fd = CreateSpoolFile(lpOutput);
+ fd = CreateSpoolFile(lpOutput, lpTitle);
if (fd < 0)
{
WARN("Cannot create spool file\n");
--
1.5.6.5.GIT
Подробная информация о списке рассылки Wine-patches