crypt32/tests: Fix test failures on some Win95 and some NT4.
This commit is contained in:
parent
b9c122f15e
commit
f48b0aa6a2
|
@ -1322,10 +1322,15 @@ static void test_encrypt_message(void)
|
||||||
ret = CryptEncryptMessage(¶, 0, NULL, blob, sizeof(blob),
|
ret = CryptEncryptMessage(¶, 0, NULL, blob, sizeof(blob),
|
||||||
encryptedBlob, &encryptedBlobSize);
|
encryptedBlob, &encryptedBlobSize);
|
||||||
todo_wine
|
todo_wine
|
||||||
ok(ret, "CryptEncryptMessage failed: %08x\n", GetLastError());
|
ok(ret ||
|
||||||
todo_wine
|
broken(!ret && GetLastError() == NTE_PERM), /* some NT4 */
|
||||||
ok(encryptedBlobSize == 55,
|
"CryptEncryptMessage failed: %08x\n", GetLastError());
|
||||||
"unexpected size of encrypted blob %d\n", encryptedBlobSize);
|
if (ret)
|
||||||
|
{
|
||||||
|
todo_wine
|
||||||
|
ok(encryptedBlobSize == 55,
|
||||||
|
"unexpected size of encrypted blob %d\n", encryptedBlobSize);
|
||||||
|
}
|
||||||
CryptMemFree(encryptedBlob);
|
CryptMemFree(encryptedBlob);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1345,7 +1350,9 @@ static void test_encrypt_message(void)
|
||||||
ret = CryptEncryptMessage(¶, 2, certs, blob, sizeof(blob),
|
ret = CryptEncryptMessage(¶, 2, certs, blob, sizeof(blob),
|
||||||
encryptedBlob, &encryptedBlobSize);
|
encryptedBlob, &encryptedBlobSize);
|
||||||
todo_wine
|
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);
|
CryptMemFree(encryptedBlob);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue