ADVAPI32: return the correct error when OpenService is called with a non-existing service

Mike McCormack mike at codeweavers.com
Mon Sep 6 14:15:07 CDT 2004


ChangeLog:
* return the correct error when OpenService is called with a 
non-existing service
-------------- next part --------------
Index: dlls/advapi32/service.c
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/service.c,v
retrieving revision 1.52
diff -u -r1.52 service.c
--- dlls/advapi32/service.c	2 Sep 2004 23:00:54 -0000	1.52
+++ dlls/advapi32/service.c	6 Sep 2004 17:44:33 -0000
@@ -533,6 +533,7 @@
     if (r!=ERROR_SUCCESS)
     {
         free_sc_handle( retval );
+        SetLastError( ERROR_SERVICE_DOES_NOT_EXIST );
         return NULL;
     }
     


More information about the wine-patches mailing list