James Hawkins : kernel32: Fix a test that fails in win2k3.

Alexandre Julliard julliard at winehq.org
Wed Sep 3 07:43:32 CDT 2008


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

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Tue Sep  2 01:02:39 2008 -0500

kernel32: Fix a test that fails in win2k3.

---

 dlls/kernel32/tests/pipe.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/tests/pipe.c b/dlls/kernel32/tests/pipe.c
index ce0f5b6..8de2e97 100644
--- a/dlls/kernel32/tests/pipe.c
+++ b/dlls/kernel32/tests/pipe.c
@@ -953,7 +953,10 @@ static void test_ImpersonateNamedPipeClient(HANDLE hClientToken, DWORD security_
     ret = ImpersonateNamedPipeClient(hPipeServer);
     error = GetLastError();
     todo_wine
-    ok(!ret && (error == ERROR_CANNOT_IMPERSONATE), "ImpersonateNamedPipeClient should have failed with ERROR_CANNOT_IMPERSONATE instead of %d\n", GetLastError());
+    ok(!ret &&
+       (error == ERROR_CANNOT_IMPERSONATE ||
+        error == 0xdeadbeef), /* win2k3 */
+       "ImpersonateNamedPipeClient should have failed with ERROR_CANNOT_IMPERSONATE instead of %d\n", GetLastError());
 
     ret = ConnectNamedPipe(hPipeServer, NULL);
     ok(ret || (GetLastError() == ERROR_PIPE_CONNECTED), "ConnectNamedPipe failed with error %d\n", GetLastError());




More information about the wine-cvs mailing list