crypt32/tests: Fix a test failure on Vista and W2K8.
This commit is contained in:
parent
7e0b930182
commit
77ca0d8935
|
@ -467,8 +467,10 @@ static void test_format_object(void)
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = pCryptFormatObject(X509_ASN_ENCODING, 0, CRYPT_FORMAT_STR_NO_HEX,
|
ret = pCryptFormatObject(X509_ASN_ENCODING, 0, CRYPT_FORMAT_STR_NO_HEX,
|
||||||
NULL, NULL, NULL, 0, NULL, &size);
|
NULL, NULL, NULL, 0, NULL, &size);
|
||||||
ok(!ret && GetLastError() == ERROR_FILE_NOT_FOUND,
|
ok(!ret, "CryptFormatObject succeeded\n");
|
||||||
"expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError());
|
ok(GetLastError() == ERROR_FILE_NOT_FOUND ||
|
||||||
|
GetLastError() == 0xdeadbeef, /* Vista, W2K8 */
|
||||||
|
"expected ERROR_FILE_NOT_FOUND or no change, got %d\n", GetLastError());
|
||||||
/* When called to format an AUTHORITY_KEY_ID2_INFO, it fails when no
|
/* When called to format an AUTHORITY_KEY_ID2_INFO, it fails when no
|
||||||
* data are given.
|
* data are given.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue