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
3110b72e
Commit
3110b72e
authored
Aug 17, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Don't crash if connecting to dbus fails.
parent
68208425
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
dbus.c
dlls/mountmgr.sys/dbus.c
+4
-1
No files found.
dlls/mountmgr.sys/dbus.c
View file @
3110b72e
...
...
@@ -600,6 +600,9 @@ static DBusMessage *device_by_iface_request( const char *iface )
DBusMessage
*
request
,
*
reply
;
DBusMessageIter
iter
;
DBusError
error
;
DBusConnection
*
connection
=
get_dhcp_connection
();
if
(
!
connection
)
return
NULL
;
request
=
p_dbus_message_new_method_call
(
"org.freedesktop.NetworkManager"
,
"/org/freedesktop/NetworkManager"
,
"org.freedesktop.NetworkManager"
,
"GetDeviceByIpIface"
);
...
...
@@ -609,7 +612,7 @@ static DBusMessage *device_by_iface_request( const char *iface )
p_dbus_message_iter_append_basic
(
&
iter
,
DBUS_TYPE_STRING
,
&
iface
);
p_dbus_error_init
(
&
error
);
reply
=
p_dbus_connection_send_with_reply_and_block
(
get_dhcp_connection
()
,
request
,
-
1
,
&
error
);
reply
=
p_dbus_connection_send_with_reply_and_block
(
connection
,
request
,
-
1
,
&
error
);
p_dbus_message_unref
(
request
);
if
(
!
reply
)
{
...
...
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