Fix for programs that store VirtualQueryEx results in signed integers (eg. The Borland Linker)

Alexandre Julliard julliard at winehq.org
Thu Mar 4 19:48:30 CST 2004


Troy Rollo <wine at troy.rollo.name> writes:

> Doesn't the list in VIRTUAL_FirstView hold all that is needed? If we reserve 
> the whole lot, it seems to me that the only parts that would need to be added 
> in there would be the parts that are below the 0xc0000000 boundary and were 
> allocated before we get in to claim the range.

No, because we can't currently allocate a view in the middle of
another one, which we would need in order to load Win9x native dlls.

> On related matters, looking at the code that calls mmap yesterday, I noticed 
> that a VirtualAlloc with MEM_RESERVED (the flag to reserve a range of virtual 
> addresses under windows) does not use the MAP_NORESERVE flag (the flag to 
> prevent the system from allocating swap space for the mapped range) - is 
> there a reason for this?

No real reason no, this could be changed.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list