Sebastian Lackner : services: Ignore error in callback only for ControlService requests.

Alexandre Julliard julliard at winehq.org
Thu Aug 11 09:37:48 CDT 2016


Module: wine
Branch: master
Commit: 5137bfd4ba230e3734aefc2bedc98aee07009aee
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5137bfd4ba230e3734aefc2bedc98aee07009aee

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Thu Aug 11 07:22:04 2016 +0200

services: Ignore error in callback only for ControlService requests.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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




More information about the wine-cvs mailing list