mirror of
https://github.com/reactos/reactos.git
synced 2024-10-14 21:25:14 +00:00
- Add error messages to prevent silent failing, no functionality change.
svn path=/trunk/; revision=26667
This commit is contained in:
parent
33ea79c7fe
commit
959a4b6f1e
|
@ -97,13 +97,22 @@ StartCustomService(
|
||||||
|
|
||||||
hSCManager = OpenSCManager(NULL, NULL, 0);
|
hSCManager = OpenSCManager(NULL, NULL, 0);
|
||||||
if (!hSCManager)
|
if (!hSCManager)
|
||||||
|
{
|
||||||
|
ERR("WL: Failed to OpenSCManager\n");
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
hService = OpenServiceW(hSCManager, ServiceName, SERVICE_START);
|
hService = OpenServiceW(hSCManager, ServiceName, SERVICE_START);
|
||||||
if (!hService)
|
if (!hService)
|
||||||
|
{
|
||||||
|
ERR("WL: Failed to open the service\n");
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
}
|
||||||
if (!StartServiceW(hService, 0, NULL))
|
if (!StartServiceW(hService, 0, NULL))
|
||||||
|
{
|
||||||
|
ERR("WL: Failed to start the service\n");
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue