services: Ignore error in callback only for ControlService requests.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-08-11 07:22:04 +02:00 committed by Alexandre Julliard
parent fac8ec9389
commit 5137bfd4ba
1 changed files with 2 additions and 2 deletions

View File

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