From c2a5e8a6104380f9fbc9cd6643aad49e48ebd327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 17 Aug 2013 20:07:39 +0000 Subject: [PATCH] [SERVICES] Clarify the fact that WaitForSingleObject returns WAIT_OBJECT_0 (which happens to be equal to ERROR_SUCCESS...) svn path=/trunk/; revision=59765 --- reactos/base/system/services/database.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/base/system/services/database.c b/reactos/base/system/services/database.c index 2440c6ab90f..a5c24d22929 100644 --- a/reactos/base/system/services/database.c +++ b/reactos/base/system/services/database.c @@ -956,7 +956,7 @@ ScmControlService(PSERVICE Service, dwError = ERROR_SERVICE_REQUEST_TIMEOUT; goto Done; } - else if (dwError == ERROR_SUCCESS) + else if (dwError == WAIT_OBJECT_0) { bResult = GetOverlappedResult(Service->lpImage->hControlPipe, &Overlapped, @@ -1010,7 +1010,7 @@ ScmControlService(PSERVICE Service, dwError = ERROR_SERVICE_REQUEST_TIMEOUT; goto Done; } - else if (dwError == ERROR_SUCCESS) + else if (dwError == WAIT_OBJECT_0) { bResult = GetOverlappedResult(Service->lpImage->hControlPipe, &Overlapped, @@ -1207,7 +1207,7 @@ ScmSendStartCommand(PSERVICE Service, dwError = ERROR_SERVICE_REQUEST_TIMEOUT; goto Done; } - else if (dwError == ERROR_SUCCESS) + else if (dwError == WAIT_OBJECT_0) { bResult = GetOverlappedResult(Service->lpImage->hControlPipe, &Overlapped, @@ -1261,7 +1261,7 @@ ScmSendStartCommand(PSERVICE Service, dwError = ERROR_SERVICE_REQUEST_TIMEOUT; goto Done; } - else if (dwError == ERROR_SUCCESS) + else if (dwError == WAIT_OBJECT_0) { bResult = GetOverlappedResult(Service->lpImage->hControlPipe, &Overlapped, @@ -1425,9 +1425,9 @@ ScmWaitForServiceConnect(PSERVICE Service) return ERROR_SERVICE_REQUEST_TIMEOUT; } - else if (dwError == ERROR_SUCCESS) + else if (dwError == WAIT_OBJECT_0) { - DPRINT("WaitForSingleObject() returned ERROR_SUCCESS\n"); + DPRINT("WaitForSingleObject() returned WAIT_OBJECT_0\n"); DPRINT("Process Id: %lu\n", dwProcessId);