kernel32: Fix a test that fails in win2k3.

This commit is contained in:
James Hawkins 2008-09-02 01:02:39 -05:00 committed by Alexandre Julliard
parent 731306bf78
commit 57cda911a9
1 changed files with 4 additions and 1 deletions

View File

@ -953,7 +953,10 @@ static void test_ImpersonateNamedPipeClient(HANDLE hClientToken, DWORD security_
ret = ImpersonateNamedPipeClient(hPipeServer); ret = ImpersonateNamedPipeClient(hPipeServer);
error = GetLastError(); error = GetLastError();
todo_wine 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); ret = ConnectNamedPipe(hPipeServer, NULL);
ok(ret || (GetLastError() == ERROR_PIPE_CONNECTED), "ConnectNamedPipe failed with error %d\n", GetLastError()); ok(ret || (GetLastError() == ERROR_PIPE_CONNECTED), "ConnectNamedPipe failed with error %d\n", GetLastError());