From 903488b35470604212d4d3f8ce5a176a7161ba7f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 15 Jun 2010 11:36:40 +0200 Subject: [PATCH] ntdll: Make the DOS area accessible even when not using it to hide bugs in broken apps. --- dlls/ntdll/virtual.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index a9e25c8039f..23a5d4c5ba4 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -1355,6 +1355,10 @@ void virtual_init(void) virtual_heap = RtlCreateHeap( HEAP_NO_SERIALIZE, heap_base, VIRTUAL_HEAP_SIZE, VIRTUAL_HEAP_SIZE, NULL, NULL ); create_view( &heap_view, heap_base, VIRTUAL_HEAP_SIZE, VPROT_COMMITTED | VPROT_READ | VPROT_WRITE ); + + /* make the DOS area accessible to hide bugs in broken apps like Excel 2003 */ + if (wine_mmap_is_in_reserved_area( (void *)0x10000, 0x100000 ) == 1) + wine_anon_mmap( (void *)0x10000, 0x100000, PROT_READ | PROT_WRITE, MAP_FIXED ); }