Commit 5996ef7f authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

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

parent 9359fd2f
...@@ -259,9 +259,13 @@ static void test_ports_server(void) ...@@ -259,9 +259,13 @@ static void test_ports_server(void)
status = pNtReplyWaitReceivePort(PortHandle, NULL, NULL, LpcMessage); status = pNtReplyWaitReceivePort(PortHandle, NULL, NULL, LpcMessage);
todo_wine 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) switch (LpcMessage->MessageType)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment