Alexandre Julliard writes:
 > > Furthermore,
 > > MapViewOfFileEx() should return an error, if a mapping can't be made
 > > to the requested address, if any. 
 > 
 > Yes, but that's not what MAP_FIXED does (it wipes out existing
 > mappings). And the right fix, which is to have MapViewOfFileEx fail if
 > mmap doesn't return the address we want is rumored to break Solaris,
 > because of some mysterious address rounding mechanism.

Looking at linux/mm/mmap.c shows, that MAP_FIXED does both, it maps
to the requested address and clears existing mappings, if any. Can we
use VirtualQuery() to check, if the address is free? 

Greetings, 

Peter

virtual.patch



-- 
Peter Ganten
[EMAIL PROTECTED]

Reply via email to