mirror of
https://github.com/reactos/reactos.git
synced 2026-07-05 03:44:30 +08: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user