Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f99cb329
Commit
f99cb329
authored
Jun 17, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
Jun 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add zero_bits parameter to load_builtin.
Signed-off-by:
Brendan Shanks
<
bshanks@codeweavers.com
>
parent
20abf39d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
loader.c
dlls/ntdll/unix/loader.c
+3
-3
unix_private.h
dlls/ntdll/unix/unix_private.h
+1
-1
virtual.c
dlls/ntdll/unix/virtual.c
+1
-1
No files found.
dlls/ntdll/unix/loader.c
View file @
f99cb329
...
...
@@ -1644,7 +1644,7 @@ done:
* Return STATUS_IMAGE_ALREADY_LOADED if we should keep the native one that we have found.
*/
NTSTATUS
load_builtin
(
const
pe_image_info_t
*
image_info
,
WCHAR
*
filename
,
void
**
module
,
SIZE_T
*
size
)
void
**
module
,
SIZE_T
*
size
,
ULONG_PTR
zero_bits
)
{
WORD
machine
=
image_info
->
machine
;
/* request same machine as the native one */
NTSTATUS
status
;
...
...
@@ -1675,9 +1675,9 @@ NTSTATUS load_builtin( const pe_image_info_t *image_info, WCHAR *filename,
case
LO_NATIVE_BUILTIN
:
return
STATUS_IMAGE_ALREADY_LOADED
;
case
LO_BUILTIN
:
return
find_builtin_dll
(
&
nt_name
,
module
,
size
,
&
info
,
0
,
machine
,
FALSE
);
return
find_builtin_dll
(
&
nt_name
,
module
,
size
,
&
info
,
zero_bits
,
machine
,
FALSE
);
default:
status
=
find_builtin_dll
(
&
nt_name
,
module
,
size
,
&
info
,
0
,
machine
,
(
loadorder
==
LO_DEFAULT
)
);
status
=
find_builtin_dll
(
&
nt_name
,
module
,
size
,
&
info
,
zero_bits
,
machine
,
(
loadorder
==
LO_DEFAULT
)
);
if
(
status
==
STATUS_DLL_NOT_FOUND
||
status
==
STATUS_IMAGE_MACHINE_TYPE_MISMATCH
)
return
STATUS_IMAGE_ALREADY_LOADED
;
return
status
;
...
...
dlls/ntdll/unix/unix_private.h
View file @
f99cb329
...
...
@@ -150,7 +150,7 @@ extern void *create_startup_info( const UNICODE_STRING *nt_image, const RTL_USER
extern
char
**
build_envp
(
const
WCHAR
*
envW
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
exec_wineloader
(
char
**
argv
,
int
socketfd
,
const
pe_image_info_t
*
pe_info
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
load_builtin
(
const
pe_image_info_t
*
image_info
,
WCHAR
*
filename
,
void
**
addr_ptr
,
SIZE_T
*
size_ptr
)
DECLSPEC_HIDDEN
;
void
**
addr_ptr
,
SIZE_T
*
size_ptr
,
ULONG_PTR
zero_bits
)
DECLSPEC_HIDDEN
;
extern
BOOL
is_builtin_path
(
const
UNICODE_STRING
*
path
,
WORD
*
machine
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
load_main_exe
(
const
WCHAR
*
name
,
const
char
*
unix_name
,
const
WCHAR
*
curdir
,
WCHAR
**
image
,
void
**
module
)
DECLSPEC_HIDDEN
;
...
...
dlls/ntdll/unix/virtual.c
View file @
f99cb329
...
...
@@ -2539,7 +2539,7 @@ static NTSTATUS virtual_map_section( HANDLE handle, PVOID *addr_ptr, ULONG_PTR z
{
filename
=
(
WCHAR
*
)(
image_info
+
1
);
/* check if we can replace that mapping with the builtin */
res
=
load_builtin
(
image_info
,
filename
,
addr_ptr
,
size_ptr
);
res
=
load_builtin
(
image_info
,
filename
,
addr_ptr
,
size_ptr
,
zero_bits
);
if
(
res
==
STATUS_IMAGE_ALREADY_LOADED
)
res
=
virtual_map_image
(
handle
,
access
,
addr_ptr
,
size_ptr
,
zero_bits
,
shared_file
,
alloc_type
,
image_info
,
filename
,
FALSE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment