kernel32/tests: Fix pipe test on w2k3.

This commit is contained in:
Alexandre Julliard 2008-11-17 13:16:26 +01:00
parent 3c533397e9
commit 61ea936d68
1 changed files with 1 additions and 4 deletions

View File

@ -955,10 +955,7 @@ static void test_ImpersonateNamedPipeClient(HANDLE hClientToken, DWORD security_
SetLastError(0xdeadbeef);
ret = ImpersonateNamedPipeClient(hPipeServer);
error = GetLastError();
todo_wine
ok(!ret &&
(error == ERROR_CANNOT_IMPERSONATE ||
error == 0xdeadbeef), /* win2k3 */
ok(ret /* win2k3 */ || (error == ERROR_CANNOT_IMPERSONATE),
"ImpersonateNamedPipeClient should have failed with ERROR_CANNOT_IMPERSONATE instead of %d\n", GetLastError());
ret = ConnectNamedPipe(hPipeServer, NULL);