5 Nov
2025
5 Nov
'25
2:57 p.m.
Yuxuan Shui (@yshui) commented about dlls/kernel32/toolhelp.c:
else hProcess = GetCurrentProcess();
+ if (hProcess != GetCurrentProcess() && + RtlIsCurrentProcess( hProcess ) && + !NtQueryObject(hProcess, ObjectBasicInformation, &obi, sizeof(obi), NULL) &&
I think this access check is not needed, right? Since we just opened the process. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9371#note_120852