services: WaitForSingleObject returns a DWORD result.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Sebastian Lackner 2016-08-18 09:25:23 +02:00 committed by Alexandre Julliard
parent 299a6ce5bb
commit b08ce1ae80
1 changed files with 2 additions and 3 deletions

View File

@ -1084,7 +1084,6 @@ DWORD __cdecl svcctl_ControlService(
struct sc_service_handle *service;
struct process_entry *process;
DWORD result;
BOOL ret;
WINE_TRACE("(%p, %d, %p)\n", hService, dwControl, lpServiceStatus);
@ -1164,8 +1163,8 @@ DWORD __cdecl svcctl_ControlService(
if (!process)
return ERROR_SERVICE_CANNOT_ACCEPT_CTRL;
ret = WaitForSingleObject(process->control_mutex, 30000);
if (ret != WAIT_OBJECT_0)
result = WaitForSingleObject(process->control_mutex, 30000);
if (result != WAIT_OBJECT_0)
{
release_process(process);
return ERROR_SERVICE_REQUEST_TIMEOUT;