Paul Vriens : ntdll: Report FIXME only once.

Alexandre Julliard julliard at winehq.org
Tue Oct 30 08:32:46 CDT 2007


Module: wine
Branch: master
Commit: 2f09f50641751b2eee6c8bb8142be8c769e83974
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2f09f50641751b2eee6c8bb8142be8c769e83974

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Mon Oct 29 14:11:23 2007 +0100

ntdll: Report FIXME only once.

---

 dlls/ntdll/thread.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index aaa5216..37a845f 100644
--- a/dlls/ntdll/thread.c
+++ b/dlls/ntdll/thread.c
@@ -1217,9 +1217,17 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
                 }
                 else
                 {
+                    static BOOL reported = FALSE;
+
                     kusrt.KernelTime.QuadPart = 0;
                     kusrt.UserTime.QuadPart = 0;
-                    FIXME("Cannot get kerneltime or usertime of other threads\n");
+                    if (reported)
+                        TRACE("Cannot get kerneltime or usertime of other threads\n");
+                    else
+                    {
+                        FIXME("Cannot get kerneltime or usertime of other threads\n");
+                        reported = TRUE;
+                    }
                 }
                 if (data) memcpy( data, &kusrt, min( length, sizeof(kusrt) ));
                 if (ret_len) *ret_len = min( length, sizeof(kusrt) );




More information about the wine-cvs mailing list