advapi32/tests: Use already existing static string instead of literal.
This commit is contained in:
parent
065470ed62
commit
087ff0644f
|
@ -144,7 +144,7 @@ static void test_open_svc(void)
|
||||||
/* Proper SCM handle but different access rights */
|
/* Proper SCM handle but different access rights */
|
||||||
scm_handle = OpenSCManagerA(NULL, NULL, SC_MANAGER_CONNECT);
|
scm_handle = OpenSCManagerA(NULL, NULL, SC_MANAGER_CONNECT);
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
svc_handle = OpenServiceA(scm_handle, "Spooler", GENERIC_WRITE);
|
svc_handle = OpenServiceA(scm_handle, spooler, GENERIC_WRITE);
|
||||||
if (!svc_handle && (GetLastError() == ERROR_ACCESS_DENIED))
|
if (!svc_handle && (GetLastError() == ERROR_ACCESS_DENIED))
|
||||||
skip("Not enough rights to get a handle to the service\n");
|
skip("Not enough rights to get a handle to the service\n");
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue