Commit 6991d557 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

advapi32: Fix failing tests on a number of systems.

parent ae2c086e
......@@ -238,7 +238,13 @@ static void test_generic(void)
new_cred.UserName = (char *)"winetest";
ret = pCredWriteA(&new_cred, 0);
ok(ret, "CredWriteA failed with error %d\n", GetLastError());
ok(ret || broken(GetLastError() == ERROR_NO_SUCH_LOGON_SESSION),
"CredWriteA failed with error %d\n", GetLastError());
if (!ret)
{
skip("couldn't write generic credentials, skipping tests\n");
return;
}
ret = pCredEnumerateA(NULL, 0, &count, &creds);
ok(ret, "CredEnumerateA failed with error %d\n", GetLastError());
......
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