Index: win32ss/printing/base/spoolss/printers.c =================================================================== --- win32ss/printing/base/spoolss/printers.c (revision 74931) +++ win32ss/printing/base/spoolss/printers.c (working copy) @@ -199,11 +199,11 @@ } } +Cleanup: // ERROR_INVALID_NAME by the Print Provider is translated to ERROR_INVALID_PRINTER_NAME here, but not in other APIs as far as I know. if (dwErrorCode == ERROR_INVALID_NAME) dwErrorCode = ERROR_INVALID_PRINTER_NAME; -Cleanup: SetLastError(dwErrorCode); return (dwErrorCode == ERROR_SUCCESS); }