mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:20:30 +00:00
services: WaitForSingleObject returns a DWORD result.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
299a6ce5bb
commit
b08ce1ae80
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue