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
407b01c4
Commit
407b01c4
authored
May 16, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
May 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Implement Wow64 entry points in the Unix library.
parent
ec6062c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
unixlib.c
dlls/wineps.drv/unixlib.c
+52
-0
No files found.
dlls/wineps.drv/unixlib.c
View file @
407b01c4
...
...
@@ -1742,3 +1742,55 @@ const unixlib_entry_t __wine_unix_call_funcs[] =
};
C_ASSERT
(
ARRAYSIZE
(
__wine_unix_call_funcs
)
==
unix_funcs_count
);
#ifdef _WIN64
typedef
ULONG
PTR32
;
static
NTSTATUS
wow64_import_ntf
(
void
*
args
)
{
struct
{
PTR32
data
;
int
size
;
}
const
*
params32
=
args
;
struct
import_ntf_params
params
=
{
ULongToPtr
(
params32
->
data
),
params32
->
size
};
return
import_ntf
(
&
params
);
}
static
NTSTATUS
wow64_open_dc
(
void
*
args
)
{
struct
{
PTR32
device
;
PTR32
devmode
;
PTR32
output
;
PTR32
def_devmode
;
PTR32
hdc
;
}
*
params32
=
args
;
struct
open_dc_params
params
=
{
ULongToPtr
(
params32
->
device
),
ULongToPtr
(
params32
->
devmode
),
ULongToPtr
(
params32
->
output
),
ULongToPtr
(
params32
->
def_devmode
),
0
};
NTSTATUS
ret
;
ret
=
open_dc
(
&
params
);
params32
->
hdc
=
PtrToUlong
(
params
.
hdc
);
return
ret
;
}
const
unixlib_entry_t
__wine_unix_call_wow64_funcs
[]
=
{
free_printer_info
,
wow64_import_ntf
,
wow64_open_dc
,
};
C_ASSERT
(
ARRAYSIZE
(
__wine_unix_call_wow64_funcs
)
==
unix_funcs_count
);
#endif
/* _WIN64 */
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