mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 878745 - followup patch, r=vyang
This commit is contained in:
parent
82e422b825
commit
11fdbf1d77
@ -1589,15 +1589,18 @@ GetDefaultAdapterPath(BluetoothValue& aValue, nsString& aError)
|
||||
DBUS_MANAGER_IFACE,
|
||||
"DefaultAdapter",
|
||||
DBUS_TYPE_INVALID);
|
||||
|
||||
UnpackObjectPathMessage(msg, &err, aValue, aError);
|
||||
|
||||
if (msg) {
|
||||
dbus_message_unref(msg);
|
||||
}
|
||||
|
||||
if (!aError.IsEmpty()) {
|
||||
return NS_ERROR_FAILURE;
|
||||
return false;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
@ -1773,7 +1776,7 @@ public:
|
||||
|
||||
BluetoothValue v;
|
||||
nsAutoString replyError;
|
||||
if (GetDefaultAdapterPath(v, replyError)) {
|
||||
if (!GetDefaultAdapterPath(v, replyError)) {
|
||||
DispatchBluetoothReply(mRunnable, v, replyError);
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user