Paul Vriens : rsaenh/tests: Fix some test failures on XP (pre SP3).

Alexandre Julliard julliard at winehq.org
Wed Mar 17 12:19:05 CDT 2010


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Tue Mar 16 19:17:56 2010 +0100

rsaenh/tests: Fix some test failures on XP (pre SP3).

---

 dlls/rsaenh/tests/rsaenh.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 55dd2df..94b1ed0 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -803,7 +803,12 @@ static void test_sha2(void)
     for (i=0; i<2048; i++) pbData[i] = (unsigned char)i;
 
     /* SHA-256 hash */
+    SetLastError(0xdeadbeef);
     result = CryptCreateHash(hProv, CALG_SHA_256, 0, 0, &hHash);
+    if (!result && GetLastError() == NTE_BAD_ALGID) {
+        win_skip("SHA-256/384/512 hashes are not supported before Windows XP SP3\n");
+        return;
+    }
     ok(result, "%08x\n", GetLastError());
     if (result) {
         len = sizeof(DWORD);




More information about the wine-cvs mailing list