• Martin Storsjö's avatar
    ntdll: Avoid accidentally picking up ntdll's __wine_unix_call_funcs for other DLLs. · d6829bdc
    Martin Storsjö authored
    When f7332ab4 switched load_so_dll
    over to a proper Unix syscall, ntdll.so started providing the
    symbol __wine_unix_call_funcs.
    
    When a DLL calls NtQueryVirtualMemory(MemoryWineUnixFuncs), it can
    do so speculatively, not knowing whether the corresponding unix
    lib actually does provide anything.
    
    When ntdll.so started providing this symbol, then such speculative
    calls to NtQueryVirtualMemory(MemoryWineUnixFuncs) would end up
    returning ntdll's __wine_unix_call_funcs if the intended DLL's
    unix library lacked one.
    
    This is the case with bcrypt, where the unix library doesn't
    provide __wine_unix_call_funcs if gnutls is unavailable.
    
    This fixes crashes after f7332ab4,
    in builds without gnutls.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    d6829bdc
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...