Module: wine Branch: stable Commit: 7b34af8dccdca38290ec760678c666d9f111105b URL: https://source.winehq.org/git/wine.git/?a=commit;h=7b34af8dccdca38290ec76067...
Author: Alexandre Julliard julliard@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@winehq.org (cherry picked from commit a27f187503f55de4b0c703bdb2d24dd07cd63cc1) Signed-off-by: Michael Stefaniuc mstefani@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 ); } }