advapi32/tests: Trace the display name if CreateService() unexpectedly succeeds.
Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9a6781f8c9
commit
2f9941e224
|
@ -379,7 +379,7 @@ static void test_create_delete_svc(void)
|
|||
{
|
||||
svc_handle1 = CreateServiceA(scm_handle, servicename, display, 0, SERVICE_WIN32_OWN_PROCESS,
|
||||
SERVICE_DISABLED, 0, pathname, NULL, NULL, NULL, NULL, NULL);
|
||||
ok(!svc_handle1, "Expected failure\n");
|
||||
ok(!svc_handle1, "Expected failure for display name '%s'\n", display);
|
||||
ok(GetLastError() == ERROR_DUPLICATE_SERVICE_NAME,
|
||||
"Expected ERROR_DUPLICATE_SERVICE_NAME, got %d\n", GetLastError());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue