Alexandre Julliard : advapi32/tests: Fix the service inactive state check to match the documentation.

Alexandre Julliard julliard at winehq.org
Wed Feb 3 09:33:03 CST 2010


Module: wine
Branch: master
Commit: 823edff3127740633611fe89fe5c203a356b1e75
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=823edff3127740633611fe89fe5c203a356b1e75

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Feb  2 23:44:32 2010 +0100

advapi32/tests: Fix the service inactive state check to match the documentation.

---

 dlls/advapi32/tests/service.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index 17f89d1..605f384 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -1315,10 +1315,10 @@ static void test_enum_svc(void)
          */
         if (status.dwServiceType & (SERVICE_WIN32_OWN_PROCESS | SERVICE_WIN32_SHARE_PROCESS))
         {
-            if (status.dwCurrentState == SERVICE_RUNNING)
-                servicecountactive--;
-            else
+            if (status.dwCurrentState == SERVICE_STOPPED)
                 servicecountinactive--;
+            else
+                servicecountactive--;
         }
     }
     HeapFree(GetProcessHeap(), 0, services);
@@ -1661,7 +1661,7 @@ static void test_enum_svc(void)
 
         if (status.dwServiceType & (SERVICE_WIN32_OWN_PROCESS | SERVICE_WIN32_SHARE_PROCESS))
         {
-            if (status.dwCurrentState == SERVICE_RUNNING)
+            if (status.dwCurrentState != SERVICE_STOPPED)
             {
                 /* We expect a process id for every running service */
                 ok(status.dwProcessId > 0, "Expected a process id for this running service (%s)\n",




More information about the wine-cvs mailing list