[4/6] services: Ignore error in callback only for ControlService requests.

Sebastian Lackner sebastian at fds-team.de
Thu Aug 11 00:22:04 CDT 2016


Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
 programs/services/rpc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/services/rpc.c b/programs/services/rpc.c
index 102b3b5..228371c 100644
--- a/programs/services/rpc.c
+++ b/programs/services/rpc.c
@@ -1027,7 +1027,6 @@ BOOL process_send_command(struct process_entry *process, const void *data, DWORD
         return FALSE;
     }
 
-    *result = ERROR_SUCCESS;
     return TRUE;
 }
 
@@ -1173,7 +1172,8 @@ DWORD __cdecl svcctl_ControlService(
         return ERROR_SERVICE_REQUEST_TIMEOUT;
     }
 
-    process_send_control(process, service->service_entry->name, dwControl, NULL, 0, &result);
+    if (process_send_control(process, service->service_entry->name, dwControl, NULL, 0, &result))
+        result = ERROR_SUCCESS;
 
     if (lpServiceStatus)
     {
-- 
2.9.0



More information about the wine-patches mailing list