Zebediah Figura : ntdll: Append ntdll.dll to the builtin_modules list.

Alexandre Julliard julliard at winehq.org
Wed Jul 29 15:47:01 CDT 2020


Module: wine
Branch: master
Commit: b7e51a1653320d06a9c04f53d0d9e7eda577c31b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b7e51a1653320d06a9c04f53d0d9e7eda577c31b

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed Jul 29 11:41:05 2020 -0500

ntdll: Append ntdll.dll to the builtin_modules list.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49626
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 499d9bf58b..bd3a095875 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;
+        fstat( fd, &st );
+        if (!(status = virtual_map_ntdll( fd, &module )))
+            add_builtin_module( module, NULL, &st );
         close( fd );
     }
     else




More information about the wine-cvs mailing list