Feb. 22, 2024
9:59 p.m.
IsBadReadPtr() is an attempt to actually implement some subset of correct behaviour, and it looks very wrong.
GetHandleInformation() seems to be a more correct function (and it works on Windows too: https://testbot.winehq.org/JobDetails.pl?Key=143336) I'll update the MR to use that instead I guess -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5139#note_62345