mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[ADVAPI32_WINETEST]
- Make the Spooler -> Eventlog hack complete instead of half-doing it. "Fixes" test failure on Windows. See r53502 svn path=/trunk/; revision=54377
This commit is contained in:
parent
37fe8c8eff
commit
8e8284168c
1 changed files with 4 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue