But in this form the original purpose is defeated, it in fact makes things worse in the sense of described motivation as now it won't return a theoretical error to the well behaving apps which would check it. But I personally doubt that such a change is useful (with abort or not). This is a random pick from Windows security mechanics which doesn't improve things in isolation. If we wanted to do what Windows does here for some reason maybe it would be more interesting in theory to make sure that we are not failing on underlying get random path. Aborting on PE side in a way Windows will never abort looks wrong. And as soon as it is not going to abort it is unneeded code. It is best to avoid unneeded PE side Wine specific things which diverge from Windows behaviour. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10174#note_130371