Bernhard Kölbl (@besentv) commented about dlls/kernelbase/thread.c:
-BOOL WINAPI DECLSPEC_HOTPATCH SetThreadGroupAffinity( HANDLE thread, const GROUP_AFFINITY *new, +BOOL WINAPI SetThreadGroupAffinity( HANDLE thread, const GROUP_AFFINITY *new, GROUP_AFFINITY *old ) {
- GROUP_AFFINITY local_old; if (old && !GetThreadGroupAffinity( thread, old )) return FALSE;
- /* Debug: log requested group/mask and previous affinity if available */
- if (new)
- {
TRACE("SetThreadGroupAffinity: thread=%p new->Group=%hu new->Mask=0x%llx\n",
thread, new->Group, (unsigned long long)new->Mask);
- }
- else
- {
TRACE("SetThreadGroupAffinity: thread=%p new=NULL\n", thread);
- }
This if else seems unnecessary