Paul Vriens : advapi32/tests: SC_MANAGER_ENUMERATE_SERVICE is enough.

Alexandre Julliard julliard at winehq.org
Tue Aug 26 07:06:39 CDT 2008


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Mon Aug 25 10:52:03 2008 +0200

advapi32/tests: SC_MANAGER_ENUMERATE_SERVICE is enough.

---

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

diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index 55f3040..1cf0f62 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -1068,7 +1068,7 @@ static void test_enum_svc(void)
 
     /* Open the service control manager with the needed rights */
     CloseServiceHandle(scm_handle);
-    scm_handle = OpenSCManagerA(NULL, NULL, SC_MANAGER_CONNECT | SC_MANAGER_ENUMERATE_SERVICE);
+    scm_handle = OpenSCManagerA(NULL, NULL, SC_MANAGER_ENUMERATE_SERVICE);
 
     /* All parameters are correct. Request the needed buffer size */
     needed = 0xdeadbeef;
@@ -1438,7 +1438,7 @@ static void test_enum_svc(void)
 
     /* Open the service control manager with the needed rights */
     CloseServiceHandle(scm_handle);
-    scm_handle = OpenSCManagerA(NULL, NULL, SC_MANAGER_CONNECT | SC_MANAGER_ENUMERATE_SERVICE);
+    scm_handle = OpenSCManagerA(NULL, NULL, SC_MANAGER_ENUMERATE_SERVICE);
 
     /* All parameters are correct and the group will be checked */
     needed = 0xdeadbeef;




More information about the wine-cvs mailing list