mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
- Check for GetServiceConfig returning NULL, which occurs if entries for the service are not in registry.
svn path=/trunk/; revision=37243
This commit is contained in:
parent
6a787e6143
commit
de0a39ef52
1 changed files with 7 additions and 4 deletions
|
@ -174,11 +174,14 @@ ChangeListViewText(PMAIN_WND_INFO Info,
|
|||
|
||||
lpServiceConfig = GetServiceConfig(pService->lpServiceName);
|
||||
|
||||
switch (lpServiceConfig->dwStartType)
|
||||
if (lpServiceConfig)
|
||||
{
|
||||
case 2: StringId = IDS_SERVICES_AUTO; break;
|
||||
case 3: StringId = IDS_SERVICES_MAN; break;
|
||||
case 4: StringId = IDS_SERVICES_DIS; break;
|
||||
switch (lpServiceConfig->dwStartType)
|
||||
{
|
||||
case 2: StringId = IDS_SERVICES_AUTO; break;
|
||||
case 3: StringId = IDS_SERVICES_MAN; break;
|
||||
case 4: StringId = IDS_SERVICES_DIS; break;
|
||||
}
|
||||
}
|
||||
|
||||
if (StringId)
|
||||
|
|
Loading…
Reference in a new issue