mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 779702: Fixing Device and UUID array assignments in BluetoothAdapter
This commit is contained in:
parent
f305d2c7de
commit
ec41fcb9b6
@ -154,9 +154,9 @@ BluetoothAdapter::SetPropertyByValue(const BluetoothNamedValue& aValue)
|
||||
if (sc) {
|
||||
rv =
|
||||
StringArrayToJSArray(sc->GetNativeContext(),
|
||||
sc->GetNativeGlobal(), mUuids, &mJsDeviceAddresses);
|
||||
sc->GetNativeGlobal(), mDeviceAddresses, &mJsDeviceAddresses);
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_WARNING("Cannot set JS Devices Addresses object!");
|
||||
NS_WARNING("Cannot set JS Device Addresses object!");
|
||||
return;
|
||||
}
|
||||
Root();
|
||||
@ -335,7 +335,7 @@ BluetoothAdapter::GetDevices(JSContext* aCx, jsval* aDevices)
|
||||
aDevices->setObject(*mJsDeviceAddresses);
|
||||
}
|
||||
else {
|
||||
NS_WARNING("UUIDs not yet set!\n");
|
||||
NS_WARNING("Devices not yet set!\n");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user