From 5996ef7f8ec53661e8bc1a874e139e8a54dd4f30 Mon Sep 17 00:00:00 2001 From: Stefan Leichter Date: Sat, 13 May 2006 09:15:50 +0200 Subject: [PATCH] ntdll: Fix endless loop in port test for users without admin rights. --- dlls/ntdll/tests/port.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/tests/port.c b/dlls/ntdll/tests/port.c index 387efe13a1c..495cf7dfbae 100644 --- a/dlls/ntdll/tests/port.c +++ b/dlls/ntdll/tests/port.c @@ -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) {