[ADVAPI32] Ignore the return value of the HandlerFunctionEx as well
authorEric Kohl <eric.kohl@reactos.org>
Thu, 19 Apr 2018 04:09:57 +0000 (06:09 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Thu, 19 Apr 2018 04:09:57 +0000 (06:09 +0200)
Ignore the return value of the HandlerFunctionEx because we already ignore the return value of the HandlerFunction.
This fixes a winetest failure.

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);