eric pouech (@epo) commented about dlls/kernel32/toolhelp.c:
{ hProcess = OpenProcess( PROCESS_VM_READ | PROCESS_QUERY_INFORMATION, FALSE, process ); if (!hProcess) return FALSE;
if (RtlIsCurrentProcess( hProcess )) hProcess = GetCurrentProcess();
this will end up calling CloseHandle(GetCurrentProcess()) some lines below... not wrong, but likely more readable with if (process != GetCurrentProcess()) CloseHandle(...)