ntdll: virtual_free_system_view() is not used anymore so remove it.
Francois Gouget
fgouget at free.fr
Wed May 13 03:29:35 CDT 2009
---
I believe it became obsolete with the recent pthread changes.
dlls/ntdll/virtual.c | 26 --------------------------
1 files changed, 0 insertions(+), 26 deletions(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 9d46764..e0a758b 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1368,32 +1368,6 @@ NTSTATUS virtual_create_system_view( void *base, SIZE_T size, DWORD vprot )
/***********************************************************************
- * virtual_free_system_view
- */
-SIZE_T virtual_free_system_view( PVOID *addr_ptr )
-{
- FILE_VIEW *view;
- sigset_t sigset;
- SIZE_T size = 0;
- char *base = ROUND_ADDR( *addr_ptr, page_mask );
-
- server_enter_uninterrupted_section( &csVirtual, &sigset );
- if ((view = VIRTUAL_FindView( base, 0 )))
- {
- TRACE( "freeing %p-%p\n", view->base, (char *)view->base + view->size );
- /* return the values that the caller should use to unmap the area */
- *addr_ptr = view->base;
- /* make sure we don't munmap anything from a reserved area */
- if (!wine_mmap_is_in_reserved_area( view->base, view->size )) size = view->size;
- view->protect |= VPROT_SYSTEM;
- delete_view( view );
- }
- server_leave_uninterrupted_section( &csVirtual, &sigset );
- return size;
-}
-
-
-/***********************************************************************
* virtual_alloc_thread_stack
*/
NTSTATUS virtual_alloc_thread_stack( TEB *teb, SIZE_T reserve_size, SIZE_T commit_size )
--
1.6.2.1
More information about the wine-patches
mailing list