Juan Lang : wintrust: Fix a couple tests on a variety of systems.

Alexandre Julliard julliard at winehq.org
Thu Feb 12 11:14:46 CST 2009


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Feb 11 18:03:40 2009 -0800

wintrust: Fix a couple tests on a variety of systems.

---

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

diff --git a/dlls/wintrust/tests/register.c b/dlls/wintrust/tests/register.c
index 9d1437f..ccceb6c 100644
--- a/dlls/wintrust/tests/register.c
+++ b/dlls/wintrust/tests/register.c
@@ -120,8 +120,10 @@ static void test_AddRem_ActionID(void)
     SetLastError(0xdeadbeef);
     ret = pWintrustAddActionID(&ActionID, 0, &ActionIDFunctions);
     ok (ret, "Expected WintrustAddActionID to succeed.\n");
-    ok (GetLastError() == ERROR_INVALID_PARAMETER,
-        "Expected ERROR_INVALID_PARAMETER, got %u.\n", GetLastError());
+    ok (GetLastError() == ERROR_INVALID_PARAMETER ||
+        GetLastError() == ERROR_ACCESS_DENIED,
+        "Expected ERROR_INVALID_PARAMETER or ERROR_ACCESS_DENIED, got %u.\n",
+        GetLastError());
 
     /* All OK and all functions are correctly defined. The DLL and entrypoints
      * are not present.
@@ -139,8 +141,9 @@ static void test_AddRem_ActionID(void)
     SetLastError(0xdeadbeef);
     ret = pWintrustAddActionID(&ActionID, 0, &ActionIDFunctions);
     ok (ret, "Expected WintrustAddActionID to succeed.\n");
-    ok (GetLastError() == 0xdeadbeef,
-        "Expected 0xdeadbeef, got %u.\n", GetLastError());
+    ok (GetLastError() == 0xdeadbeef || GetLastError() == ERROR_ACCESS_DENIED,
+        "Expected 0xdeadbeef or ERROR_ACCESS_DENIED, got %u.\n",
+        GetLastError());
 
     SetLastError(0xdeadbeef);
     ret = pWintrustRemoveActionID(&ActionID);




More information about the wine-cvs mailing list