From 4ce995451e5b3d6c1cd4243f1d6f44275cb66a29 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 9 Apr 2010 16:25:25 +0200 Subject: [PATCH] ntdll: Build the virtual_release_address_space function on all platforms. --- dlls/ntdll/virtual.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index 15973fb4729..6fedbf3aaa9 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -1683,10 +1683,11 @@ static int free_reserved_memory( void *base, size_t size, void *arg ) */ void virtual_release_address_space( BOOL free_high_mem ) { -#ifdef __i386__ struct free_range range; sigset_t sigset; + if (user_space_limit == address_space_limit) return; /* no need to free anything */ + server_enter_uninterrupted_section( &csVirtual, &sigset ); /* no large address space on win9x */ @@ -1707,7 +1708,6 @@ void virtual_release_address_space( BOOL free_high_mem ) } server_leave_uninterrupted_section( &csVirtual, &sigset ); -#endif }