[ros-diffs] [hpoussin] 19543: Return NULL when an error occurs in CreateServiceW

hpoussin at svn.reactos.com hpoussin at svn.reactos.com
Fri Nov 25 10:30:14 CET 2005


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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051125/99c9f112/attachment.html


More information about the Ros-diffs mailing list