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
9e7a9270
Commit
9e7a9270
authored
Nov 22, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fall back to the current loader if the corresponding 32/64-bit loader isn't found.
parent
ae8562ed
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
env.c
dlls/ntdll/unix/env.c
+1
-0
loader.c
dlls/ntdll/unix/loader.c
+1
-6
No files found.
dlls/ntdll/unix/env.c
View file @
9e7a9270
...
...
@@ -1863,6 +1863,7 @@ static void init_peb( RTL_USER_PROCESS_PARAMETERS *params, void *module )
NtCurrentTeb
()
->
Tib
.
ExceptionList
=
(
void
*
)((
char
*
)
NtCurrentTeb
()
+
teb_offset
);
wow_peb
=
(
PEB32
*
)((
char
*
)
peb
+
page_size
);
set_thread_id
(
NtCurrentTeb
(),
GetCurrentProcessId
(),
GetCurrentThreadId
()
);
ERR
(
"starting %s in experimental wow64 mode
\n
"
,
debugstr_us
(
&
params
->
ImagePathName
)
);
}
#endif
...
...
dlls/ntdll/unix/loader.c
View file @
9e7a9270
...
...
@@ -706,14 +706,9 @@ static NTSTATUS loader_exec( char **argv, WORD machine )
strcpy
(
argv
[
1
],
wineloader
);
strcat
(
argv
[
1
],
"64"
);
preloader_exec
(
argv
);
return
STATUS_INVALID_IMAGE_FORMAT
;
}
}
else
if
((
argv
[
1
]
=
remove_tail
(
wineloader
,
"64"
)))
{
preloader_exec
(
argv
);
return
STATUS_INVALID_IMAGE_FORMAT
;
}
else
if
((
argv
[
1
]
=
remove_tail
(
wineloader
,
"64"
)))
preloader_exec
(
argv
);
}
argv
[
1
]
=
strdup
(
wineloader
);
...
...
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