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
7bea24f6
Commit
7bea24f6
authored
Dec 10, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Factor out in_wow64_call().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3821e039
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
unix_private.h
dlls/ntdll/unix/unix_private.h
+12
-7
No files found.
dlls/ntdll/unix/unix_private.h
View file @
7bea24f6
...
...
@@ -342,11 +342,19 @@ static inline NTSTATUS wait_async( HANDLE handle, BOOL alertable )
return
NtWaitForSingleObject
(
handle
,
alertable
,
NULL
);
}
static
inline
BOOL
in_wow64_call
(
void
)
{
#ifdef _WIN64
return
!!
NtCurrentTeb
()
->
WowTebOffset
;
#endif
return
FALSE
;
}
static
inline
void
set_async_iosb
(
client_ptr_t
iosb
,
NTSTATUS
status
,
ULONG_PTR
info
)
{
if
(
!
iosb
)
return
;
#ifdef _WIN64
if
(
NtCurrentTeb
()
->
WowTebOffset
)
if
(
in_wow64_call
()
)
{
struct
iosb32
{
...
...
@@ -357,7 +365,6 @@ static inline void set_async_iosb( client_ptr_t iosb, NTSTATUS status, ULONG_PTR
io
->
Information
=
info
;
}
else
#endif
{
IO_STATUS_BLOCK
*
io
=
wine_server_get_ptr
(
iosb
);
#ifdef NONAMELESSUNION
...
...
@@ -371,12 +378,10 @@ static inline void set_async_iosb( client_ptr_t iosb, NTSTATUS status, ULONG_PTR
static
inline
client_ptr_t
iosb_client_ptr
(
IO_STATUS_BLOCK
*
io
)
{
#ifdef _WIN64
#ifdef NONAMELESSUNION
if
(
io
&&
NtCurrentTeb
()
->
WowTebOffset
)
return
wine_server_client_ptr
(
io
->
u
.
Pointer
);
if
(
io
&&
in_wow64_call
()
)
return
wine_server_client_ptr
(
io
->
u
.
Pointer
);
#else
if
(
io
&&
NtCurrentTeb
()
->
WowTebOffset
)
return
wine_server_client_ptr
(
io
->
Pointer
);
#endif
if
(
io
&&
in_wow64_call
())
return
wine_server_client_ptr
(
io
->
Pointer
);
#endif
return
wine_server_client_ptr
(
io
);
}
...
...
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