[PATCH] W2K and XP-SP1 don't set last error

Paul Vriens Paul.Vriens.Wine at gmail.com
Thu Feb 28 09:48:00 CST 2008


---
 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;
-- 
1.5.4.1


--------------010100070009060505050603--



More information about the wine-patches mailing list