http://bugs.winehq.org/show_bug.cgi?id=6862
Summary: KS-SWD does not print (fix included) Product: Wine Version: 0.9.27. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-gdi-(printing) AssignedTo: wine-bugs@winehq.org ReportedBy: lollul@wp.pl
There is a program KS-SWD (http://www.kamsoft.pl/prod/swd/index.htm). I've tried to find out why it wouldn't print when run on wine. Other programs (notepad) where printing fine. With a bit of tracing I've found the issue. Function OpenJob16 receives an empty string as lpOutput parameter when called from PSDRV_StartDocA (dlls/wineps.drv/escape.c). I was able to fix it by commenting out 2 lines: --- escape.c.org 2006-12-10 22:12:49.000000000 +0100 +++ escape.c 2006-12-10 22:13:16.000000000 +0100 @@ -396,8 +396,8 @@
if(doc->lpszOutput) output = doc->lpszOutput; - else if(physDev->job.output) - output = physDev->job.output; +// else if(physDev->job.output) +// output = physDev->job.output; else { if(OpenPrinterA(physDev->pi->FriendlyName, &hprn, NULL) && GetPrinterA(hprn, 5, buf, sizeof(buf), &needed)) {
So seems that physDev->job.output was an empty string. Cups version here is 1.2.5 If I can help somehow to get this fixed properly, let me know. Thanks!