Huw Davies : winspool: Skip the old printer check if it has a NULL port name.
Module: wine Branch: master Commit: 0c5ce58505e24bf07cbd4c09752ef2f949d64fd0 URL: https://source.winehq.org/git/wine.git/?a=commit;h=0c5ce58505e24bf07cbd4c097... Author: Huw Davies <huw(a)codeweavers.com> Date: Thu Nov 22 08:53:39 2018 +0000 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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/winspool.drv/info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index 7c4ee9a..fb268a0 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -1572,6 +1572,8 @@ static void old_printer_check( BOOL delete_phase ) EnumPrintersW( PRINTER_ENUM_LOCAL, NULL, 5, (LPBYTE)pi, needed, &needed, &num ); for (i = 0; i < num; i++) { + if (!pi[i].pPortName) continue; + if (strncmpW( pi[i].pPortName, CUPS_Port, strlenW(CUPS_Port) ) && strncmpW( pi[i].pPortName, LPR_Port, strlenW(LPR_Port) )) continue;
participants (1)
-
Alexandre Julliard