- 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:
Michael Martin 2008-11-07 13:39:11 +00:00
parent 6a787e6143
commit de0a39ef52

View file

@ -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)