Alexandre Julliard
5016716f6e
winspool: Use standard dlopen() instead of the libwine wrappers.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-07 14:26:20 +02:00
Dmitry Timoshkov
bd7ba264b6
winspool: Implement IsValidDevmodeW.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-16 13:58:19 +02:00
Dmitry Timoshkov
df8c52cd91
winspool: Add support for level 1 printer info to GetPrinter.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-30 11:47:21 +02:00
Alexandre Julliard
3d6febc997
include: Get rid of the DPRINTF() macro.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-08 19:34:44 +02:00
Piotr Caban
4c106a9319
winspool.drv: Don't use strcasecmp.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-04 16:58:59 +02:00
Alexandre Julliard
d4bc97c554
winspool.drv: Make cupsGetPPD optional to work around deprecation warning.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-14 18:24:46 +01:00
Alex Henrie
4761c367e0
winspool.drv: Make constant 'fmtW' static.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-03 10:53:52 +01:00
Huw Davies
0c5ce58505
winspool: Skip the old printer check if it has a NULL port name.
...
Based on a patch by Alistair Leslie-Hughes.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=33502
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-22 23:55:58 +01:00
Michael Stefaniuc
18e2df401e
winspool.drv: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-10 22:35:54 +02:00
Dmitry Timoshkov
4adfa3dc26
winspool: Add performance counters service stubs.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-12 12:57:54 +02:00
Andrey Gusev
b7987c6b32
winspool.drv: Avoid bitwise operation.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-09 19:51:22 +02:00
Nikolay Sivov
614ad0c8c2
winspool: Fix potential string buffer leaks (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-23 11:40:59 +01:00
Nikolay Sivov
a3aad9d80f
winspool: Initialize string pointers passed to StartDocDlgW() (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-23 11:40:57 +01:00
Detlef Riekenberg
7cba560ab2
winspool: Use all Fields from DRIVER_INFO_8A when we add a Printer Driver.
...
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-28 13:54:51 +01:00
Detlef Riekenberg
b611acc736
winspool: Return a failure code in ClosePrinter.
...
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-02 17:02:36 +01:00
Detlef Riekenberg
686cfe3aaf
winspool: Add our driver for all usable Printer environments.
...
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-20 16:26:26 -07:00
Ken Thomases
10065d2acd
winspool.drv: Include <cups/ppd.h> to fix building against the macOS 10.12 SDK.
...
The cupsGetPPD() function was moved there from <cups/cups.h> because it's
deprecated.
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 15:31:43 +09:00
André Hentschel
88c77da35d
winspool: Implement SetPrinterW for level 8.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:11:24 +09:00
Jeremy White
71f018cba5
winspool.drv: If the call to cupsPrintFile fails, print the cups error message.
...
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 16:38:51 +09:00
Austin English
110b53affc
winspool.drv: Add EnumPrinterKeyA/W stubs.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:15 +09:00
Francois Gouget
413c6f60cf
Assorted spelling fixes.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-02 12:59:52 +09:00
Erich E. Hoover
126f0601e2
winspool.drv: Allow spooling directly to a postscript file.
...
Required for PDF printing in OrCAD 16.6.
2015-08-26 23:53:21 +09:00
Hans Leidekker
ccb19eed69
winspool: Don't fail on empty server name in AddPrinterW.
2015-07-29 21:44:02 +02:00
Francois Gouget
e54b62ae7c
winspool.drv: Remove unneeded NONAMELESSXXX directives.
2015-04-01 14:13:18 +09:00
Alexandre Julliard
f1aea67d95
winspool.drv: Don't crash if the ppd directory cannot be created.
2014-12-17 17:10:50 +01:00
André Hentschel
76272d6e6c
winspool.drv: Remove unused strings (Clang).
2014-12-04 14:03:23 +01:00
Bruno Jesus
daaa4c40d4
winspool: Fix a leak in DocumentPropertiesA (valgrind).
2014-07-08 10:15:15 +02:00
Bruno Jesus
2728066152
winspool.drv: Do not try to check the registry if opening the printer fails (valgrind).
2014-06-11 16:10:36 +02:00
Hans Leidekker
ec082c3102
winspool: Add stub implementations of UploadPrinterDriverPackageA/W.
2014-02-27 09:32:47 -06:00
André Hentschel
64601b7895
winspool: Use boolean return values in boolean functions.
2014-01-29 17:30:04 +01:00
Huw Davies
1990e19424
winspool: Add any default printer options that aren't set by the driver.
2013-11-01 14:17:24 +01:00
Frédéric Delanoy
8afd655a62
winspool.drv: Use BOOL type where appropriate.
2013-10-09 10:08:57 +02:00
Alexandre Julliard
8c959d6c56
winspool: Store generic.ppd in a resource instead of depending on an external file.
2013-10-08 09:27:14 +02:00
Dmitry Timoshkov
aa0cc00b48
winspool.drv: Avoid converting garbage if there was no DEVMODE passed in.
2013-06-14 11:46:00 +02:00
Tatyana Fokina
f63d59d640
winspool.drv: Fix DocumentProperties with empty device name.
2013-04-05 20:39:01 +02:00
Dmitry Timoshkov
142c2982dc
winspool.drv: Move loading of libcups out of the init code protected by mutex.
2013-04-01 12:32:36 +02:00
Dmitry Timoshkov
dc8d7e7d62
winspool.drv: There is no need to speculate about wineps.drv default DEVMODE.
2013-02-12 10:18:20 +01:00
Dmitry Timoshkov
bdf14227ab
winspool.drv: Add more traces.
2012-12-17 20:31:22 +01:00
Ken Thomases
436edbdfc7
winspool: Close read end of pipe in parent so we can detect child termination.
2012-12-12 11:59:23 +01:00
Andrew Talbot
e72e40b3da
winspool.drv: Remove unused semicolons.
2012-12-03 12:33:55 +01:00
Andrew Talbot
26671c8f36
winspool.drv: Remove unused variable.
2012-11-23 14:40:45 +01:00
Huw Davies
02d41b7b1a
winspool: Pre-1.6 versions of CUPS can leave behind a file when cupsGetPDD3 fails, so clear up afterwards.
2012-11-16 11:41:41 +01:00
André Hentschel
2cefbaab97
winspool: Avoid memory leaks (coverity).
2012-11-01 18:59:01 +01:00
Huw Davies
2f3d13a49d
winspool: Skip scanner-only devices.
2012-09-14 15:44:43 +02:00
Michael Stefaniuc
aae2602eba
winspool.drv: Drop a superfluous TRUE:FALSE conditional expression.
2012-08-15 12:13:02 +02:00
Huw Davies
c4457ec191
winspool: Don't assume that CUPS is available.
2012-07-09 15:06:52 -04:00
Huw Davies
6a65a04893
winspool: On OS/X read the default paper size from the core printing api.
2012-06-21 18:57:19 +02:00
Huw Davies
0c31766c88
winspool: Update the devmode when we update the driver.
2012-06-21 18:56:38 +02:00
Huw Davies
69ff2636b4
winspool: Set the printer location from the cups printer-location option.
2012-06-15 18:35:36 +02:00
Huw Davies
5875185e34
winspool: Set the printer description from the cups printer-info option.
2012-06-15 18:35:35 +02:00