Matteo Bruni (@Mystral) commented about dlls/d3dx10_43/d3dx10_43_main.c:
thread_pump->io_count = THREAD_PUMP_EXITING;
ReleaseSRWLockExclusive(&thread_pump->io_lock);
RtlWakeAddressAll((void *)&thread_pump->io_count);
AcquireSRWLockExclusive(&thread_pump->proc_lock);
thread_pump->proc_count = THREAD_PUMP_EXITING;
ReleaseSRWLockExclusive(&thread_pump->proc_lock);
RtlWakeAddressAll((void *)&thread_pump->proc_count);
AcquireSRWLockExclusive(&thread_pump->device_lock);
thread_pump->device_count = THREAD_PUMP_EXITING;
ReleaseSRWLockExclusive(&thread_pump->device_lock);
for (i = 0; i < thread_pump->threads_no; i++)
{
if (!thread_pump->threads[i]) continue;
More nitpick, "if" body on a separate line.