WINSPOOL: return correct error code in EnumPrinters

Mike McCormack mike at codeweavers.com
Wed Nov 24 00:23:07 CST 2004


ChangeLog:
* return correct error code in EnumPrinters
-------------- next part --------------
Index: dlls/winspool/info.c
===================================================================
RCS file: /home/wine/wine/dlls/winspool/info.c,v
retrieving revision 1.96
diff -u -r1.96 info.c
--- dlls/winspool/info.c	29 Oct 2004 21:27:38 -0000	1.96
+++ dlls/winspool/info.c	24 Nov 2004 07:11:29 -0000
@@ -2890,7 +2890,8 @@
 
     /* check input parameter */
     if((Level < 1) || (Level > 3)) {
-        ERR("unsupported level %ld \n", Level);
+        ERR("unsupported level %ld\n", Level);
+        SetLastError(ERROR_INVALID_LEVEL);
         return FALSE;
     }
 


More information about the wine-patches mailing list