Skip to content

Commit

Permalink
[local] ntdll: Silence FIXMEs for "info class not supported"
Browse files Browse the repository at this point in the history
This really messes up logging in some games and may reduce performance.

Github-Link: #9
Signed-off-by: Kai Krakow <[email protected]>
  • Loading branch information
kakra committed Mar 1, 2019
1 parent 68c5b61 commit cf0390e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions dlls/ntdll/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -1264,8 +1264,12 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
case ThreadPriorityBoost:
case ThreadSetTlsArrayAddress:
default:
FIXME( "info class %d not supported yet\n", class );
return STATUS_NOT_IMPLEMENTED;
{
static int once[MaxThreadInfoClass];
if (!once[class]++)
FIXME( "info class %d not supported yet\n", class );
return STATUS_NOT_IMPLEMENTED;
}
}
}

Expand Down Expand Up @@ -1421,8 +1425,12 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
case ThreadSetTlsArrayAddress:
case ThreadIsIoPending:
default:
FIXME( "info class %d not supported yet\n", class );
return STATUS_NOT_IMPLEMENTED;
{
static int once[MaxThreadInfoClass];
if (!once[class]++)
FIXME( "info class %d not supported yet\n", class );
return STATUS_NOT_IMPLEMENTED;
}
}
}

Expand Down

0 comments on commit cf0390e

Please sign in to comment.