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

This commit is contained in:
Thomas Faber 2011-11-15 20:28:06 +01:00 committed by Alexandre Julliard
parent 065470ed62
commit 087ff0644f

View file

@ -144,7 +144,7 @@ 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);
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