Commit 9bed3adc authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

ntdll: Add zero_bits parameter to virtual_map_builtin_module.

parent 1a321739
...@@ -1486,7 +1486,7 @@ static NTSTATUS open_builtin_pe_file( const char *name, OBJECT_ATTRIBUTES *attr, ...@@ -1486,7 +1486,7 @@ static NTSTATUS open_builtin_pe_file( const char *name, OBJECT_ATTRIBUTES *attr,
status = open_dll_file( name, attr, &mapping ); status = open_dll_file( name, attr, &mapping );
if (!status) if (!status)
{ {
status = virtual_map_builtin_module( mapping, module, size, image_info, machine, prefer_native ); status = virtual_map_builtin_module( mapping, module, size, image_info, 0, machine, prefer_native );
NtClose( mapping ); NtClose( mapping );
} }
return status; return status;
......
...@@ -195,8 +195,8 @@ extern void *anon_mmap_alloc( size_t size, int prot ) DECLSPEC_HIDDEN; ...@@ -195,8 +195,8 @@ extern void *anon_mmap_alloc( size_t size, int prot ) DECLSPEC_HIDDEN;
extern void virtual_init(void) DECLSPEC_HIDDEN; extern void virtual_init(void) DECLSPEC_HIDDEN;
extern ULONG_PTR get_system_affinity_mask(void) DECLSPEC_HIDDEN; extern ULONG_PTR get_system_affinity_mask(void) DECLSPEC_HIDDEN;
extern void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info, BOOL wow64 ) DECLSPEC_HIDDEN; extern void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info, BOOL wow64 ) DECLSPEC_HIDDEN;
extern NTSTATUS virtual_map_builtin_module( HANDLE mapping, void **module, SIZE_T *size, extern NTSTATUS virtual_map_builtin_module( HANDLE mapping, void **module, SIZE_T *size, SECTION_IMAGE_INFORMATION *info,
SECTION_IMAGE_INFORMATION *info, WORD machine, BOOL prefer_native ) DECLSPEC_HIDDEN; ULONG_PTR zero_bits, WORD machine, BOOL prefer_native ) DECLSPEC_HIDDEN;
extern NTSTATUS virtual_create_builtin_view( void *module, const UNICODE_STRING *nt_name, extern NTSTATUS virtual_create_builtin_view( void *module, const UNICODE_STRING *nt_name,
pe_image_info_t *info, void *so_handle ) DECLSPEC_HIDDEN; pe_image_info_t *info, void *so_handle ) DECLSPEC_HIDDEN;
extern TEB *virtual_alloc_first_teb(void) DECLSPEC_HIDDEN; extern TEB *virtual_alloc_first_teb(void) DECLSPEC_HIDDEN;
......
...@@ -2756,8 +2756,8 @@ void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info, BOOL wow64 ) ...@@ -2756,8 +2756,8 @@ void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info, BOOL wow64 )
/*********************************************************************** /***********************************************************************
* virtual_map_builtin_module * virtual_map_builtin_module
*/ */
NTSTATUS virtual_map_builtin_module( HANDLE mapping, void **module, SIZE_T *size, NTSTATUS virtual_map_builtin_module( HANDLE mapping, void **module, SIZE_T *size, SECTION_IMAGE_INFORMATION *info,
SECTION_IMAGE_INFORMATION *info, WORD machine, BOOL prefer_native ) ULONG_PTR zero_bits, WORD machine, BOOL prefer_native )
{ {
mem_size_t full_size; mem_size_t full_size;
unsigned int sec_flags; unsigned int sec_flags;
...@@ -2794,7 +2794,7 @@ NTSTATUS virtual_map_builtin_module( HANDLE mapping, void **module, SIZE_T *size ...@@ -2794,7 +2794,7 @@ NTSTATUS virtual_map_builtin_module( HANDLE mapping, void **module, SIZE_T *size
else else
{ {
status = virtual_map_image( mapping, SECTION_MAP_READ | SECTION_MAP_EXECUTE, status = virtual_map_image( mapping, SECTION_MAP_READ | SECTION_MAP_EXECUTE,
module, size, 0, shared_file, 0, image_info, filename, TRUE ); module, size, zero_bits, shared_file, 0, image_info, filename, TRUE );
virtual_fill_image_information( image_info, info ); virtual_fill_image_information( image_info, info );
} }
......
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