ntdll: Fix endless loop in port test for users without admin rights.

This commit is contained in:
Stefan Leichter 2006-05-13 09:15:50 +02:00 committed by Alexandre Julliard
parent 9359fd2f9f
commit 5996ef7f8e
1 changed files with 6 additions and 2 deletions

View File

@ -259,9 +259,13 @@ static void test_ports_server(void)
status = pNtReplyWaitReceivePort(PortHandle, NULL, NULL, LpcMessage);
todo_wine
{
ok(status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %ld\n", status);
ok(status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %ld(%lx)\n", status, status);
}
if (status == STATUS_NOT_IMPLEMENTED) return;
/* STATUS_INVALID_HANDLE: win2k without admin rights will perform an
* endless loop here
*/
if ((status == STATUS_NOT_IMPLEMENTED) ||
(status == STATUS_INVALID_HANDLE)) return;
switch (LpcMessage->MessageType)
{