Paul Vriens : crypt32/tests: Fix some test failures on Win9x and NT4.
Module: wine Branch: master Commit: 1bf1adcc95b1fc26000c2d4db99f3c2610904329 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1bf1adcc95b1fc26000c2d4db9... Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Sat Dec 6 14:16:19 2008 +0100 crypt32/tests: Fix some test failures on Win9x and NT4. --- dlls/crypt32/tests/encode.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c index 60c387c..952e246 100644 --- a/dlls/crypt32/tests/encode.c +++ b/dlls/crypt32/tests/encode.c @@ -661,8 +661,9 @@ static void test_decodeFiletime(DWORD dwEncoding) size = sizeof(ft1); ret = pCryptDecodeObjectEx(dwEncoding, X509_CHOICE_OF_TIME, bogusTimes[i], bogusTimes[i][1] + 2, 0, NULL, &ft1, &size); - ok(!ret && (GetLastError() == CRYPT_E_ASN1_CORRUPT || - GetLastError() == OSS_DATA_ERROR /* Win9x */), + ok((!ret && (GetLastError() == CRYPT_E_ASN1_CORRUPT || + GetLastError() == OSS_DATA_ERROR /* Win9x */)) || + broken(ret), /* Win9x and NT4 for bin38 */ "Expected CRYPT_E_ASN1_CORRUPT or OSS_DATA_ERROR, got %08x\n", GetLastError()); }
participants (1)
-
Alexandre Julliard