rsaenh/tests: Fix some test failures on XP (pre SP3).

This commit is contained in:
Paul Vriens 2010-03-16 19:17:56 +01:00 committed by Alexandre Julliard
parent 89fef0e669
commit 3a5c925250
1 changed files with 5 additions and 0 deletions

View File

@ -803,7 +803,12 @@ static void test_sha2(void)
for (i=0; i<2048; i++) pbData[i] = (unsigned char)i;
/* SHA-256 hash */
SetLastError(0xdeadbeef);
result = CryptCreateHash(hProv, CALG_SHA_256, 0, 0, &hHash);
if (!result && GetLastError() == NTE_BAD_ALGID) {
win_skip("SHA-256/384/512 hashes are not supported before Windows XP SP3\n");
return;
}
ok(result, "%08x\n", GetLastError());
if (result) {
len = sizeof(DWORD);