wine/dlls/ntdll virtual.c

Alexandre Julliard julliard at wine.codeweavers.com
Thu Dec 1 11:52:21 CST 2005


ChangeSet ID:	21606
CVSROOT:	/opt/cvs-commit
Module name:	wine
Changes by:	julliard at winehq.org	2005/12/01 11:52:21

Modified files:
	dlls/ntdll     : virtual.c 

Log message:
	Check for need to add area to the reserved list also on unmap.

Patch: http://cvs.winehq.org/patch.py?id=21606

Old revision  New revision  Changes     Path
 1.74          1.75          +2 -0       wine/dlls/ntdll/virtual.c

Index: wine/dlls/ntdll/virtual.c
diff -u -p wine/dlls/ntdll/virtual.c:1.74 wine/dlls/ntdll/virtual.c:1.75
--- wine/dlls/ntdll/virtual.c:1.74	1 Dec 2005 17:52:21 -0000
+++ wine/dlls/ntdll/virtual.c	1 Dec 2005 17:52:21 -0000
@@ -336,6 +336,8 @@ static inline void unmap_area( void *add
 {
     if (wine_mmap_is_in_reserved_area( addr, size ))
         wine_anon_mmap( addr, size, PROT_NONE, MAP_NORESERVE | MAP_FIXED );
+    else if (is_beyond_limit( addr, size, user_space_limit ))
+        add_reserved_area( addr, size );
     else
         munmap( addr, size );
 }



More information about the wine-cvs mailing list