6 Nov
2025
6 Nov
'25
9:19 a.m.
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 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9371#note_121004