Erich E. Hoover : winspool.drv: Allow spooling directly to a postscript file.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 26 09:57:11 CDT 2015


Module: wine
Branch: master
Commit: 126f0601e2e5e19dd7bff7af7b4ddb8dc3cb711f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=126f0601e2e5e19dd7bff7af7b4ddb8dc3cb711f

Author: Erich E. Hoover <erich.e.hoover at wine-staging.com>
Date:   Tue Aug 25 16:44:18 2015 -0600

winspool.drv: Allow spooling directly to a postscript file.

Required for PDF printing in OrCAD 16.6.

---

 dlls/winspool.drv/info.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 4549034..ca2c34d 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -8432,6 +8432,11 @@ BOOL WINAPI ScheduleJob( HANDLE hPrinter, DWORD dwJobID )
             {
                 ret = schedule_file(job->filename);
             }
+            else if(isalpha(portname[0]) && portname[1] == ':')
+            {
+                TRACE("copying to %s\n", debugstr_w(portname));
+                ret = CopyFileW(job->filename, portname, FALSE);
+            }
             else
             {
                 FIXME("can't schedule to port %s\n", debugstr_w(portname));




More information about the wine-cvs mailing list