Return NULL when an error occurs in CreateServiceW
Modified: trunk/reactos/lib/advapi32/service/scm.c

Modified: trunk/reactos/lib/advapi32/service/scm.c
--- trunk/reactos/lib/advapi32/service/scm.c	2005-11-25 04:39:08 UTC (rev 19542)
+++ trunk/reactos/lib/advapi32/service/scm.c	2005-11-25 09:30:09 UTC (rev 19543)
@@ -458,7 +458,7 @@
     {
         DPRINT1("ScmrCreateServiceW() failed (Error %lu)\n", dwError);
         SetLastError(dwError);
-        return INVALID_HANDLE_VALUE;
+        return NULL;
     }
 
     return hService;