[ADVAPI32] Ignore the return value of the HandlerFunctionEx as well
[reactos.git] / dll / win32 / advapi32 / service / sctrl.c
index 40970f0..4b53a74 100644 (file)
@@ -536,9 +536,10 @@ ScControlService(PACTIVE_SERVICE lpService,
     else if (lpService->HandlerFunctionEx)
     {
         /* FIXME: Send correct 2nd and 3rd parameters */
-        dwError = (lpService->HandlerFunctionEx)(ControlPacket->dwControl,
-                                                 0, NULL,
-                                                 lpService->HandlerContext);
+        (lpService->HandlerFunctionEx)(ControlPacket->dwControl,
+                                       0, NULL,
+                                       lpService->HandlerContext);
+        dwError = ERROR_SUCCESS;
     }
 
     TRACE("ScControlService() done (Error %lu)\n", dwError);