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
cf19a7ac
Commit
cf19a7ac
authored
Apr 06, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr.sys: Use standard dlopen() instead of the libwine wrappers.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d9b6f26b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
dbus.c
dlls/mountmgr.sys/dbus.c
+7
-10
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+0
-1
No files found.
dlls/mountmgr.sys/dbus.c
View file @
cf19a7ac
...
...
@@ -44,7 +44,6 @@
#include "ip2string.h"
#include "dhcpcsdk.h"
#include "wine/library.h"
#include "wine/exception.h"
#include "wine/debug.h"
...
...
@@ -116,20 +115,19 @@ HAL_FUNCS;
static
BOOL
load_hal_functions
(
void
)
{
void
*
hal_handle
;
char
error
[
128
];
/* Load libhal with RTLD_GLOBAL so that the dbus symbols are available.
* We can't load libdbus directly since libhal may have been built against a
* different version but with the same soname. Binary compatibility is for wimps. */
if
(
!
(
hal_handle
=
wine_dlopen
(
SONAME_LIBHAL
,
RTLD_NOW
|
RTLD_GLOBAL
,
error
,
sizeof
(
error
)
)))
if
(
!
(
hal_handle
=
dlopen
(
SONAME_LIBHAL
,
RTLD_NOW
|
RTLD_GLOBAL
)))
goto
failed
;
#define DO_FUNC(f) if (!(p_##f =
wine_dlsym( RTLD_DEFAULT, #f, error, sizeof(error)
))) goto failed
#define DO_FUNC(f) if (!(p_##f =
dlsym( RTLD_DEFAULT, #f
))) goto failed
DBUS_FUNCS
;
#undef DO_FUNC
#define DO_FUNC(f) if (!(p_##f =
wine_dlsym( hal_handle, #f, error, sizeof(error)
))) goto failed
#define DO_FUNC(f) if (!(p_##f =
dlsym( hal_handle, #f
))) goto failed
HAL_FUNCS
;
#undef DO_FUNC
...
...
@@ -137,7 +135,7 @@ static BOOL load_hal_functions(void)
return
TRUE
;
failed:
WARN
(
"failed to load HAL support: %s
\n
"
,
error
);
WARN
(
"failed to load HAL support: %s
\n
"
,
dlerror
()
);
return
FALSE
;
}
...
...
@@ -185,18 +183,17 @@ static GUID *parse_uuid( GUID *guid, const char *str )
static
BOOL
load_dbus_functions
(
void
)
{
void
*
handle
;
char
error
[
128
];
if
(
!
(
handle
=
wine_dlopen
(
SONAME_LIBDBUS_1
,
RTLD_NOW
,
error
,
sizeof
(
error
)
)))
if
(
!
(
handle
=
dlopen
(
SONAME_LIBDBUS_1
,
RTLD_NOW
)))
goto
failed
;
#define DO_FUNC(f) if (!(p_##f =
wine_dlsym( handle, #f, error, sizeof(error)
))) goto failed
#define DO_FUNC(f) if (!(p_##f =
dlsym( handle, #f
))) goto failed
DBUS_FUNCS
;
#undef DO_FUNC
return
TRUE
;
failed:
WARN
(
"failed to load DBUS support: %s
\n
"
,
error
);
WARN
(
"failed to load DBUS support: %s
\n
"
,
dlerror
()
);
return
FALSE
;
}
...
...
dlls/mountmgr.sys/mountmgr.c
View file @
cf19a7ac
...
...
@@ -34,7 +34,6 @@
#include "mountmgr.h"
#include "winreg.h"
#include "wine/library.h"
#include "wine/list.h"
#include "wine/unicode.h"
#include "wine/debug.h"
...
...
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