rsaenh/tests: Fix a test failure on NT4 and below.

This commit is contained in:
Paul Vriens 2008-11-06 09:52:02 +01:00 committed by Alexandre Julliard
parent 75e511f3a7
commit 9a2fdfd66b
1 changed files with 4 additions and 1 deletions

View File

@ -379,7 +379,10 @@ static void test_hashes(void)
/* Can't add data after the hash been retrieved */
SetLastError(0xdeadbeef);
result = CryptHashData(hHash, (BYTE*)pbData, sizeof(pbData), 0);
ok(!result && GetLastError() == NTE_BAD_HASH_STATE, "%08x\n", GetLastError());
ok(!result, "Expected failure\n");
ok(GetLastError() == NTE_BAD_HASH_STATE ||
GetLastError() == NTE_BAD_ALGID, /* Win9x, WinMe, NT4 */
"Expected NTE_BAD_HASH_STATE or NTE_BAD_ALGID, got %08x\n", GetLastError());
/* You can still retrieve the hash, its value just hasn't changed */
result = CryptGetHashParam(hHash, HP_HASHVAL, pbHashValue, &len, 0);