From 162f616b5402e752604e5aaa54c62bfbf7fad5fe Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Tue, 1 Jul 2008 22:01:13 +0000 Subject: [PATCH] - check the checkboxes of the services which have the running state - bug 1986 svn path=/trunk/; revision=34241 --- reactos/base/applications/msconfig/srvpage.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/base/applications/msconfig/srvpage.c b/reactos/base/applications/msconfig/srvpage.c index 53aad055040..3e9e43cb250 100644 --- a/reactos/base/applications/msconfig/srvpage.c +++ b/reactos/base/applications/msconfig/srvpage.c @@ -135,6 +135,11 @@ GetServices ( void ) item.lParam = 0; item.iItem = ListView_InsertItem(hServicesListCtrl, &item); + if (pServiceStatus[Index].ServiceStatusProcess.dwCurrentState == SERVICE_RUNNING) + { + ListView_SetCheckState(hServicesListCtrl, item.iItem, TRUE); + } + BytesNeeded = 0; hService = OpenService(ScHandle, pServiceStatus[Index].lpServiceName, SC_MANAGER_CONNECT); if (hService != INVALID_HANDLE_VALUE)