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
81493d0f
Commit
81493d0f
authored
Nov 28, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ctapi32: Use the Unix call helpers.
parent
6677255d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
ctapi32.c
dlls/ctapi32/ctapi32.c
+2
-5
No files found.
dlls/ctapi32/ctapi32.c
View file @
81493d0f
...
...
@@ -32,9 +32,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ctapi32);
#define FALLBACK_LIBCTAPI "libctapi.so"
static
unixlib_handle_t
ctapi_handle
;
#define CTAPI_CALL( func, params ) __wine_unix_call( ctapi_handle, unix_ ## func, params )
#define CTAPI_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
static
BOOL
load_functions
(
void
)
{
...
...
@@ -104,8 +102,7 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
if
(
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hinstDLL
,
MemoryWineUnixFuncs
,
&
ctapi_handle
,
sizeof
(
ctapi_handle
),
NULL
))
if
(
__wine_init_unix_call
())
return
FALSE
;
if
(
!
load_functions
())
return
FALSE
;
...
...
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