From 959a4b6f1e41efded1d71db082bd5507a2ce8fc6 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 9 May 2007 20:52:08 +0000 Subject: [PATCH] - Add error messages to prevent silent failing, no functionality change. svn path=/trunk/; revision=26667 --- reactos/base/system/winlogon/winlogon.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reactos/base/system/winlogon/winlogon.c b/reactos/base/system/winlogon/winlogon.c index 81bb593b266..861046888c2 100644 --- a/reactos/base/system/winlogon/winlogon.c +++ b/reactos/base/system/winlogon/winlogon.c @@ -97,13 +97,22 @@ StartCustomService( hSCManager = OpenSCManager(NULL, NULL, 0); if (!hSCManager) + { + ERR("WL: Failed to OpenSCManager\n"); goto cleanup; + } hService = OpenServiceW(hSCManager, ServiceName, SERVICE_START); if (!hService) + { + ERR("WL: Failed to open the service\n"); goto cleanup; + } if (!StartServiceW(hService, 0, NULL)) + { + ERR("WL: Failed to start the service\n"); goto cleanup; + } ret = TRUE;