Paul Vriens : wintrust/tests: W2K and XP-SP1 don't set last error.

Alexandre Julliard julliard at winehq.org
Fri Feb 29 06:16:55 CST 2008


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Thu Feb 28 16:48:00 2008 +0100

wintrust/tests: W2K and XP-SP1 don't set last error.

---

 dlls/wintrust/tests/register.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/wintrust/tests/register.c b/dlls/wintrust/tests/register.c
index bdfc9e1..81be104 100644
--- a/dlls/wintrust/tests/register.c
+++ b/dlls/wintrust/tests/register.c
@@ -283,8 +283,10 @@ static void test_LoadFunctionPointers(void)
 
     SetLastError(0xdeadbeef);
     ret = pWintrustLoadFunctionPointers(NULL, &funcs);
-    ok(!ret && GetLastError() == ERROR_INVALID_PARAMETER,
-        "Expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
+    ok(!ret, "WintrustLoadFunctionPointers succeeded\n");
+    ok(GetLastError() == ERROR_INVALID_PARAMETER ||
+        GetLastError() == 0xdeadbeef /* W2K and XP-SP1 */,
+        "Expected ERROR_INVALID_PARAMETER or 0xdeadbeef, got %d\n", GetLastError());
 
     SetLastError(0xdeadbeef);
     funcs.cbStruct = 0;




More information about the wine-cvs mailing list