The return value of mincore() only tells us whether the system call succeeded, not whether the memory is resident. Check the result in the "vec" parameter like we're supposed to.
Signed-off-by: Damjan Jovanovic damjan.jov@gmail.com --- libs/wine/mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Damjan Jovanovic damjan.jov@gmail.com writes:
The return value of mincore() only tells us whether the system call succeeded, not whether the memory is resident. Check the result in the "vec" parameter like we're supposed to.
Actually we don't care whether it's resident or not, we are only interested in checking if there's something at this address.