http://bugs.winehq.org/show_bug.cgi?id=14360
Summary: dosmem forgot MAP_FIXED Product: Wine Version: 1.0.0 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: jreiser@BitWagon.com
Created an attachment (id=14657) --> (http://bugs.winehq.org/attachment.cgi?id=14657) dosmem use MAP_FIXED; new WINE_NO_DOSMEM_64KB environment variable
Dosmem forgot MAP_FIXED when calling wine_anon_mmap() to allocate memory at assumed fixed addresses for the low 1 MiB and 64 KiB. It is a bug to assume that the result address equals the requested address, unless MAP_FIXED. Also, add a new environment variable WINE_NO_DOSMEM_64KB to inhibit the low 64 KiB, even if the opreating system would allow it. By default, Linux 2.6.24 prohibits mmap in the range [0, 0x10000). Patch is attached and will be sent to wine-patches@winehq.org.