Alexandre Julliard : ntdll: Ignore the preload start address if it is zero.
Alexandre Julliard
julliard at winehq.org
Mon Oct 9 14:28:40 CDT 2017
Module: wine
Branch: master
Commit: 0374d86c571724b7100308047653d8b300072afb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0374d86c571724b7100308047653d8b300072afb
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Oct 9 10:44:29 2017 +0200
ntdll: Ignore the preload start address if it is zero.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/virtual.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 7bb4eb4..1b835bc 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1597,7 +1597,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 );
+ if (preload_reserve_start)
+ address_space_start = min( address_space_start, preload_reserve_start );
}
}
More information about the wine-cvs
mailing list