Juan Lang : crypt32: Fix a test failure on Windows 7.

Alexandre Julliard julliard at winehq.org
Thu Aug 27 10:31:07 CDT 2009


Module: wine
Branch: master
Commit: 9227947a5952f38fd4c79c0a01ec75a53b3da2af
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9227947a5952f38fd4c79c0a01ec75a53b3da2af

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Aug 26 08:56:55 2009 -0700

crypt32: Fix a test failure on Windows 7.

---

 dlls/crypt32/tests/oid.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/dlls/crypt32/tests/oid.c b/dlls/crypt32/tests/oid.c
index 8b680c4..030a548 100644
--- a/dlls/crypt32/tests/oid.c
+++ b/dlls/crypt32/tests/oid.c
@@ -98,16 +98,8 @@ static void testOIDToAlgID(void)
     DWORD alg;
 
     /* Test with a bogus one */
-    SetLastError(0xdeadbeef);
     alg = CertOIDToAlgId("1.2.3");
     ok(!alg, "Expected failure, got %d\n", alg);
-    ok(GetLastError() == 0xdeadbeef ||
-       GetLastError() == ERROR_RESOURCE_NAME_NOT_FOUND ||
-       GetLastError() == ERROR_INVALID_PARAMETER || /* Vista */
-       GetLastError() == ERROR_SUCCESS || /* win2k */
-       GetLastError() == ERROR_FILE_INVALID, /* another Vista */
-       "Expected ERROR_RESOURCE_NAME_NOT_FOUND, ERROR_INVALID_PARAMETER, "
-       "ERROR_SUCCESS or no error set, got %08x\n", GetLastError());
 
     for (i = 0; i < sizeof(oidToAlgID) / sizeof(oidToAlgID[0]); i++)
     {




More information about the wine-cvs mailing list