[ADVAPI32_WINETEST]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 14 Nov 2011 18:43:26 +0000 (18:43 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 14 Nov 2011 18:43:26 +0000 (18:43 +0000)
- Make the Spooler -> Eventlog hack complete instead of half-doing it. "Fixes" test failure on Windows. See r53502

svn path=/trunk/; revision=54377

rostests/winetests/advapi32/service.c

index cff780b..6804020 100644 (file)
@@ -145,7 +145,8 @@ static void test_open_svc(void)
     /* Proper SCM handle but different access rights */
     scm_handle = OpenSCManagerA(NULL, NULL, SC_MANAGER_CONNECT);
     SetLastError(0xdeadbeef);
-    svc_handle = OpenServiceA(scm_handle, "Spooler", GENERIC_WRITE);
+    /* ReactOS. See top of the file */
+    svc_handle = OpenServiceA(scm_handle, spooler, GENERIC_WRITE);
     if (!svc_handle && (GetLastError() == ERROR_ACCESS_DENIED))
         skip("Not enough rights to get a handle to the service\n");
     else
@@ -433,7 +434,8 @@ static void test_get_displayname(void)
     WCHAR displaynameW[2048];
     DWORD displaysize, tempsize, tempsizeW;
     static const CHAR deadbeef[] = "Deadbeef";
-    static const WCHAR spoolerW[] = {'S','p','o','o','l','e','r',0};
+    /* ReactOS. See top of the file */
+    static const WCHAR spoolerW[] = {'E','v','e','n','t','l','o','g',0};
     static const WCHAR deadbeefW[] = {'D','e','a','d','b','e','e','f',0};
     static const WCHAR abcW[] = {'A','B','C',0};
     static const CHAR servicename[] = "Winetest";