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
3b9ddb66
Commit
3b9ddb66
authored
Apr 06, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ctapi32: Use standard dlopen() instead of the libwine wrappers.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
12157fac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
ctapi32.c
dlls/ctapi32/ctapi32.c
+3
-4
No files found.
dlls/ctapi32/ctapi32.c
View file @
3b9ddb66
...
...
@@ -21,7 +21,6 @@
#include "config.h"
#include "wine/port.h"
#include <string.h>
#include "wine/library.h"
#include "wine/debug.h"
#include "windef.h"
#include "winreg.h"
...
...
@@ -72,7 +71,7 @@ static BOOL load_functions(void) {
}
TRACE
(
"Loading library '%s'
\n
"
,
soname
);
ctapi_handle
=
wine_dlopen
(
soname
,
RTLD_NOW
,
NULL
,
0
);
ctapi_handle
=
dlopen
(
soname
,
RTLD_NOW
);
if
(
ctapi_handle
)
{
TRACE
(
"Successfully loaded '%s'
\n
"
,
soname
);
}
...
...
@@ -83,7 +82,7 @@ static BOOL load_functions(void) {
return
FALSE
;
}
#define LOAD_FUNCPTR(f) if((p##f =
wine_dlsym(ctapi_handle, #f, NULL, 0
)) == NULL){WARN("Can't find symbol %s\n", #f); return FALSE;}
#define LOAD_FUNCPTR(f) if((p##f =
dlsym(ctapi_handle, #f
)) == NULL){WARN("Can't find symbol %s\n", #f); return FALSE;}
LOAD_FUNCPTR
(
CT_init
);
LOAD_FUNCPTR
(
CT_data
);
LOAD_FUNCPTR
(
CT_close
);
...
...
@@ -134,7 +133,7 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
break
;
case
DLL_PROCESS_DETACH
:
if
(
lpvReserved
)
break
;
if
(
ctapi_handle
)
wine_dlclose
(
ctapi_handle
,
NULL
,
0
);
if
(
ctapi_handle
)
dlclose
(
ctapi_handle
);
break
;
}
...
...
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