ntdll: Report FIXME only once.

This commit is contained in:
Paul Vriens 2007-10-29 14:11:23 +01:00 committed by Alexandre Julliard
parent 9f8d9e3e05
commit 2f09f50641
1 changed files with 9 additions and 1 deletions

View File

@ -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) );