ADVAPI32: fix CreateService's error code for a service that already
exists
Mike McCormack
mike at codeweavers.com
Fri Dec 24 05:10:12 CST 2004
ChangeLog:
* fix CreateService's error code for a service that already exists
-------------- next part --------------
--- dlls/advapi32/service.c.old 2004-12-24 20:07:33.000000000 +0900
+++ dlls/advapi32/service.c 2004-12-24 20:07:38.000000000 +0900
@@ -1024,7 +1024,10 @@
init_service_handle( retval, hscm, hKey, lpServiceName );
if (dp != REG_CREATED_NEW_KEY)
+ {
+ SetLastError(ERROR_SERVICE_EXISTS);
goto error;
+ }
if(lpDisplayName)
{
More information about the wine-patches
mailing list