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

Alexandre Julliard julliard at winehq.org
Tue Jan 2 15:01:24 CST 2018


Module: wine
Branch: stable
Commit: 7b34af8dccdca38290ec760678c666d9f111105b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7b34af8dccdca38290ec760678c666d9f111105b

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>
(cherry picked from commit a27f187503f55de4b0c703bdb2d24dd07cd63cc1)
Signed-off-by: Michael Stefaniuc <mstefani 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 e826fa0..e225639 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1326,6 +1326,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