Commit cb9a95f5 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

ntdll: virtual_free_system_view() is not used anymore so remove it.

parent ef5f1f50
......@@ -141,7 +141,6 @@ extern unsigned int DIR_get_drives_info( struct drive_info info[MAX_DOS_DRIVES]
/* virtual memory */
extern void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info );
extern NTSTATUS virtual_create_system_view( void *base, SIZE_T size, DWORD vprot );
extern SIZE_T virtual_free_system_view( PVOID *addr_ptr );
extern NTSTATUS virtual_alloc_thread_stack( TEB *teb, SIZE_T reserve_size, SIZE_T commit_size );
extern void virtual_clear_thread_stack(void);
extern BOOL virtual_handle_stack_fault( void *addr );
......
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment