Author: mjmartin
Date: Fri Nov 7 07:39:11 2008
New Revision: 37243
URL:
http://svn.reactos.org/svn/reactos?rev=37243&view=rev
Log:
- Check for GetServiceConfig returning NULL, which occurs if entries for the service are
not in registry.
Modified:
trunk/reactos/base/applications/mscutils/servman/listview.c
Modified: trunk/reactos/base/applications/mscutils/servman/listview.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/listview.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/servman/listview.c [iso-8859-1] Fri Nov 7
07:39:11 2008
@@ -174,11 +174,14 @@
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)