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
1938ddc6
Commit
1938ddc6
authored
Apr 06, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Use standard dlopen() instead of the libwine wrappers.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
086c686e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
netapi32.c
dlls/netapi32/netapi32.c
+5
-8
No files found.
dlls/netapi32/netapi32.c
View file @
1938ddc6
...
...
@@ -57,7 +57,6 @@
#include "dsgetdc.h"
#include "davclnt.h"
#include "wine/debug.h"
#include "wine/library.h"
#include "wine/list.h"
#include "wine/unicode.h"
#include "initguid.h"
...
...
@@ -134,19 +133,17 @@ static BOOL init_context(void)
static
BOOL
libnetapi_init
(
void
)
{
char
buf
[
200
];
if
(
libnetapi_handle
)
return
TRUE
;
if
(
!
(
libnetapi_handle
=
wine_dlopen
(
SONAME_LIBNETAPI
,
RTLD_NOW
,
buf
,
sizeof
(
buf
)
)))
if
(
!
(
libnetapi_handle
=
dlopen
(
SONAME_LIBNETAPI
,
RTLD_NOW
)))
{
WARN
(
"Failed to load libnetapi: %s
\n
"
,
buf
);
WARN
(
"Failed to load libnetapi: %s
\n
"
,
dlerror
()
);
return
FALSE
;
}
#define LOAD_FUNCPTR(f) \
if (!(p##f =
wine_dlsym( libnetapi_handle, #f, buf, sizeof(buf)
))) \
if (!(p##f =
dlsym( libnetapi_handle, #f
))) \
{ \
ERR( "Failed to load %s: %s\n", #f,
buf
); \
ERR( "Failed to load %s: %s\n", #f,
dlerror()
); \
goto error; \
}
...
...
@@ -167,7 +164,7 @@ static BOOL libnetapi_init(void)
if
(
init_context
())
return
TRUE
;
error:
wine_dlclose
(
libnetapi_handle
,
NULL
,
0
);
dlclose
(
libnetapi_handle
);
libnetapi_handle
=
NULL
;
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