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
ac5e7fab
Commit
ac5e7fab
authored
Nov 27, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Detect ntdll module also by module path comparison.
parent
871d2b94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
virtual.c
dlls/ntdll/unix/virtual.c
+7
-1
No files found.
dlls/ntdll/unix/virtual.c
View file @
ac5e7fab
...
...
@@ -640,7 +640,7 @@ void *get_builtin_so_handle( void *module )
*/
static
NTSTATUS
get_builtin_unix_funcs
(
void
*
module
,
BOOL
wow
,
const
void
**
funcs
)
{
const
char
*
ptr_name
=
wow
?
"__wine_unix_call_wow64_funcs"
:
"__wine_unix_call_funcs"
;
const
char
*
p
,
*
p
tr_name
=
wow
?
"__wine_unix_call_wow64_funcs"
:
"__wine_unix_call_funcs"
;
sigset_t
sigset
;
NTSTATUS
status
=
STATUS_DLL_NOT_FOUND
;
struct
builtin_module
*
builtin
;
...
...
@@ -655,6 +655,12 @@ static NTSTATUS get_builtin_unix_funcs( void *module, BOOL wow, const void **fun
LIST_FOR_EACH_ENTRY
(
builtin
,
&
builtin_modules
,
struct
builtin_module
,
entry
)
{
if
(
builtin
->
module
!=
module
)
continue
;
if
(
builtin
->
unix_path
&&
(
p
=
strrchr
(
builtin
->
unix_path
,
'/'
))
&&
!
strcmp
(
p
,
"/ntdll.so"
))
{
*
funcs
=
wow
?
__wine_unix_call_wow64_funcs
:
__wine_unix_call_funcs
;
status
=
STATUS_SUCCESS
;
break
;
}
if
(
builtin
->
unix_path
&&
!
builtin
->
unix_handle
)
builtin
->
unix_handle
=
dlopen
(
builtin
->
unix_path
,
RTLD_NOW
);
if
(
builtin
->
unix_handle
)
...
...
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