Alexandre Julliard : ntdll: Support loading binaries that start inside the DOS area.

Alexandre Julliard julliard at winehq.org
Wed Sep 27 17:54:49 CDT 2017


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Sep 27 09:30:05 2017 +0200

ntdll: Support loading binaries that start inside the DOS area.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/virtual.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index c64a31d..d0d25c7 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1593,6 +1593,8 @@ void virtual_init(void)
         {
             preload_reserve_start = (void *)start;
             preload_reserve_end = (void *)end;
+            /* some apps start inside the DOS area */
+            address_space_start = min( address_space_start, preload_reserve_start );
         }
     }
 




More information about the wine-cvs mailing list