crypt32/tests: Fix test failures on some Win95 and some NT4.

This commit is contained in:
Alexander Morozov 2010-11-25 17:38:59 +03:00 committed by Alexandre Julliard
parent b9c122f15e
commit f48b0aa6a2
1 changed files with 12 additions and 5 deletions

View File

@ -1322,10 +1322,15 @@ static void test_encrypt_message(void)
ret = CryptEncryptMessage(&para, 0, NULL, blob, sizeof(blob),
encryptedBlob, &encryptedBlobSize);
todo_wine
ok(ret, "CryptEncryptMessage failed: %08x\n", GetLastError());
todo_wine
ok(encryptedBlobSize == 55,
"unexpected size of encrypted blob %d\n", encryptedBlobSize);
ok(ret ||
broken(!ret && GetLastError() == NTE_PERM), /* some NT4 */
"CryptEncryptMessage failed: %08x\n", GetLastError());
if (ret)
{
todo_wine
ok(encryptedBlobSize == 55,
"unexpected size of encrypted blob %d\n", encryptedBlobSize);
}
CryptMemFree(encryptedBlob);
}
}
@ -1345,7 +1350,9 @@ static void test_encrypt_message(void)
ret = CryptEncryptMessage(&para, 2, certs, blob, sizeof(blob),
encryptedBlob, &encryptedBlobSize);
todo_wine
ok(ret, "CryptEncryptMessage failed: %08x\n", GetLastError());
ok(ret ||
broken(!ret), /* some Win95 and some NT4 */
"CryptEncryptMessage failed: %08x\n", GetLastError());
CryptMemFree(encryptedBlob);
}
}