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();
I'm not convinced it's a good idea...
* ReadProcessMemory is already optimized for that case * it gives more rights than just the ones used above in OpenProcess