ALT Linux Bugzilla
– Attachment 2188 Details for
Bug 12369
Problem with printing from specific program (CUPS)
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
приложеный патч
wine-20051107-printer.patch (text/plain), 1.42 KB, created by
Denis Kuznetsov
on 2007-09-10 13:48:25 MSD
(
hide
)
Description:
приложеный патч
Filename:
MIME Type:
Creator:
Denis Kuznetsov
Created:
2007-09-10 13:48:25 MSD
Size:
1.42 KB
patch
obsolete
>--- wine-20051107/dlls/gdi32/printdrv.c.orig 2005-11-25 11:39:55 +0200 >+++ wine-20051107/dlls/gdi32/printdrv.c 2005-11-25 11:49:03 +0200 >@@ -457,19 +457,27 @@ > > /* TTD convert the 'output device' into a spool file name */ > >- if (pszOutput == NULL || *pszOutput == '\0') >- return -1; >- >- psCmd[0] = 0; >- /* @@ Wine registry key: HKCU\Software\Wine\Printing\Spooler */ >- if(!RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Printing\\Spooler", &hkey)) >- { >- DWORD type, count = sizeof(psCmd); >- RegQueryValueExA(hkey, pszOutput, 0, &type, (LPBYTE)psCmd, &count); >- RegCloseKey(hkey); >+ if ( pszOutput && *pszOutput) >+ { >+ psCmd[0] = 0; >+ /* @@ Wine registry key: HKCU\Software\Wine\Printing\Spooler */ >+ if(!RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Printing\\Spooler", &hkey)) >+ { >+ DWORD type, count = sizeof(psCmd); >+ RegQueryValueExA(hkey, pszOutput, 0, &type, (LPBYTE)psCmd, &count); >+ RegCloseKey(hkey); >+ } >+ if (!psCmd[0] && !strncmp("LPR:",pszOutput,4)) >+ sprintf(psCmd,"|lpr -P%s",pszOutput+4); >+ } >+ else >+ { >+#ifdef HAVE_FORK >+ strcpy( psCmd,"|lpr"); >+#else >+ return -1; >+#endif > } >- if (!psCmd[0] && !strncmp("LPR:",pszOutput,4)) >- sprintf(psCmd,"|lpr -P%s",pszOutput+4); > > TRACE("Got printerSpoolCommand '%s' for output device '%s'\n", > psCmd, pszOutput);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12369
: 2188