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
9f24bc44
Commit
9f24bc44
authored
Aug 04, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Make the syscall dispatcher point to the wow64cpu syscall wrapper.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e30f091f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
syscall.c
dlls/wow64/syscall.c
+17
-1
No files found.
dlls/wow64/syscall.c
View file @
9f24bc44
...
...
@@ -62,8 +62,16 @@ struct mem_header
BYTE
data
[
1
];
};
static
void
**
pWow64Transition
;
static
void
**
p__wine_syscall_dispatcher
;
static
SYSTEM_DLL_INIT_BLOCK
*
pLdrSystemDllInitBlock
;
/* cpu backend dll functions */
static
void
*
(
WINAPI
*
pBTCpuGetBopCode
)(
void
);
static
void
(
WINAPI
*
pBTCpuProcessInit
)(
void
);
static
void
(
WINAPI
*
pBTCpuSimulate
)(
void
);
void
*
dummy
=
RtlUnwind
;
BOOL
WINAPI
DllMain
(
HINSTANCE
inst
,
DWORD
reason
,
void
*
reserved
)
...
...
@@ -400,9 +408,17 @@ static void process_init(void)
GET_PTR
(
LdrSystemDllInitBlock
);
module
=
(
HMODULE
)(
ULONG_PTR
)
pLdrSystemDllInitBlock
->
ntdll_handle
;
GET_PTR
(
Wow64Transition
);
GET_PTR
(
__wine_syscall_dispatcher
);
init_syscall_table
(
module
);
load_cpu_dll
();
module
=
load_cpu_dll
();
GET_PTR
(
BTCpuGetBopCode
);
GET_PTR
(
BTCpuProcessInit
);
GET_PTR
(
BTCpuSimulate
);
pBTCpuProcessInit
();
*
pWow64Transition
=
*
p__wine_syscall_dispatcher
=
pBTCpuGetBopCode
();
init_file_redirects
();
...
...
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