advapi32: Fix test failure on some NT4 machines.

This commit is contained in:
André Hentschel 2010-12-12 22:28:18 +01:00 committed by Alexandre Julliard
parent c0c781b14d
commit f36b593498

View File

@ -945,7 +945,8 @@ static void test_machine_guid(void)
r);
/* Create and release a provider */
ret = pCryptAcquireContextA(&hCryptProv, szKeySet, NULL, PROV_RSA_FULL, 0);
ok(ret, "CryptAcquireContextA failed: %08x\n", GetLastError());
ok(ret || broken(!ret && GetLastError() == NTE_KEYSET_ENTRY_BAD /* NT4 */),
"CryptAcquireContextA failed: %08x\n", GetLastError());
pCryptReleaseContext(hCryptProv, 0);
if (restoreGuid)