src/windows/native/sun/windows/WPrinterJob.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 993,1010 **** } if (type == GETJOBCOUNT) { ret = pPrinterInfo->cJobs; } else if (type == ACCEPTJOB) { ! if (pPrinterInfo->Status & ! (PRINTER_STATUS_ERROR | ! PRINTER_STATUS_NOT_AVAILABLE | ! PRINTER_STATUS_NO_TONER | ! PRINTER_STATUS_OUT_OF_MEMORY | ! PRINTER_STATUS_OFFLINE | ! PRINTER_STATUS_USER_INTERVENTION | ! PRINTER_STATUS_DOOR_OPEN)) { ret = 0; } else { ret = 1; } --- 993,1003 ---- } if (type == GETJOBCOUNT) { ret = pPrinterInfo->cJobs; } else if (type == ACCEPTJOB) { ! if (pPrinterInfo->Status & PRINTER_STATUS_PENDING_DELETION) { ret = 0; } else { ret = 1; }