2 Dec
2025
2 Dec
'25
10:27 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();
this will end up calling CloseHandle(GetCurrentProcess()) some lines below... not wrong, but likely more readable with if (process != GetCurrentProcess()) CloseHandle(...) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9371#note_124449