From aba6ce5b84e34ce02b14b689c66be3cc7830e9eb Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Thu, 19 Apr 2018 06:09:57 +0200 Subject: [PATCH] [ADVAPI32] Ignore the return value of the HandlerFunctionEx as well 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dll/win32/advapi32/service/sctrl.c b/dll/win32/advapi32/service/sctrl.c index 40970f08112..4b53a74c0c5 100644 --- a/dll/win32/advapi32/service/sctrl.c +++ b/dll/win32/advapi32/service/sctrl.c @@ -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); -- 2.17.1