Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
89db25af
Commit
89db25af
authored
Apr 06, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Check for DLL files when creating new processes.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=50912
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6d5a6c34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
env.c
dlls/ntdll/unix/env.c
+5
-1
process.c
dlls/ntdll/unix/process.c
+1
-0
No files found.
dlls/ntdll/unix/env.c
View file @
89db25af
...
...
@@ -1917,7 +1917,11 @@ static RTL_USER_PROCESS_PARAMETERS *build_initial_params(void)
env
[
env_pos
++
]
=
0
;
status
=
load_main_exe
(
NULL
,
main_argv
[
1
],
curdir
,
&
image
,
&
module
,
&
image_info
);
if
(
!
status
&&
image_info
.
Machine
!=
current_machine
)
status
=
STATUS_INVALID_IMAGE_FORMAT
;
if
(
!
status
)
{
if
(
image_info
.
ImageCharacteristics
&
IMAGE_FILE_DLL
)
status
=
STATUS_INVALID_IMAGE_FORMAT
;
if
(
image_info
.
Machine
!=
current_machine
)
status
=
STATUS_INVALID_IMAGE_FORMAT
;
}
if
(
status
)
/* try launching it through start.exe */
{
...
...
dlls/ntdll/unix/process.c
View file @
89db25af
...
...
@@ -365,6 +365,7 @@ static NTSTATUS get_pe_file_info( UNICODE_STRING *path, HANDLE *handle, pe_image
}
SERVER_END_REQ
;
NtClose
(
mapping
);
if
(
info
->
image_charact
&
IMAGE_FILE_DLL
)
return
STATUS_INVALID_IMAGE_FORMAT
;
}
else
if
(
status
==
STATUS_INVALID_IMAGE_NOT_MZ
)
{
...
...
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