Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49626 Signed-off-by: Zebediah Figura z.figura12@gmail.com --- dlls/ntdll/unix/loader.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c index 499d9bf58b1..818b04d8b44 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -1301,7 +1301,10 @@ static HMODULE load_ntdll(void)
if ((fd = open( name, O_RDONLY )) != -1) { - status = virtual_map_ntdll( fd, &module ); + struct stat st; + if (fstat( fd, &st )) memset(&st, 0, sizeof(st)); + if (!(status = virtual_map_ntdll( fd, &module ))) + add_builtin_module( module, NULL, &st ); close( fd ); } else