https://bugs.winehq.org/show_bug.cgi?id=33236
--- Comment #11 from Anastasius Focht focht@gmx.net --- Hello Paul,
--- quote --- Do I understand correctly that to solve this specific bug Wine needs to call NtOpenSection instead of NtOpenFile for modules? --- quote ---
I've revisited that piece of Wine code after long time and might have drawn an incorrect conclusion. Mapping Windows LdrpXXX functionality as described in the article to Wine's internal loader functionality (helper functions) is tricky as various pieces are missing / split in different ways.
The articles states that NtOpenSection() is called from LdrpCheckForKnownDll(). Wine currently doesn't implement 'KnownDlls' and its object directory.
To be honest I don't know the right place for putting a hookable NtOpenSection() in the current Wine loader design.
Regards