Commit 087ff064 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

advapi32/tests: Use already existing static string instead of literal.

parent 065470ed
...@@ -144,7 +144,7 @@ static void test_open_svc(void) ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment