[Bug 49626] New: ntdll can be loaded multiple times into the same process

WineHQ Bugzilla wine-bugs at winehq.org
Mon Jul 27 15:58:12 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=49626

            Bug ID: 49626
           Summary: ntdll can be loaded multiple times into the same
                    process
           Product: Wine
           Version: 5.13
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ntdll
          Assignee: wine-bugs at winehq.org
          Reporter: madewokherd at gmail.com
      Distribution: ---

The simplest way I've found to reproduce this is to install Python for windows
and run:
wine python -c
'print(__import__("ctypes").windll.kernel32.LoadLibraryW(r"c:\ntdll.dll"))'

This should show 0, indicating failure, but on Wine it returns a real module
handle, different from the ntdll originally loaded in the process.

Worse, the new ntdll isn't initialized properly by ntdll.so, so its functions
don't work.

This affects wine-mono, which tries to load ntdll from the application path
first, apparently expecting that to fail. Anything using an ntdll p/invoke,
such as enumerating files, won't work. This causes the run-tests.exe wrapper
(from https://github.com/madewokherd/wine-mono/releases) to crash.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list