Stefan Leichter : ntdll:
Fix endless loop in port test for users without admin rights.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon May 15 04:52:02 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 5996ef7f8ec53661e8bc1a874e139e8a54dd4f30
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5996ef7f8ec53661e8bc1a874e139e8a54dd4f30
Author: Stefan Leichter <Stefan.Leichter at camLine.com>
Date: Sat May 13 09:15:50 2006 +0200
ntdll: Fix endless loop in port test for users without admin rights.
---
dlls/ntdll/tests/port.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/tests/port.c b/dlls/ntdll/tests/port.c
index 387efe1..495cf7d 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)
{
More information about the wine-cvs
mailing list