mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1170971 - Part 2: Fix BluetoothGattAdvData unpacking in daemon backend. r=tzimmermann
This commit is contained in:
parent
33db16cb89
commit
03ccd9e1cc
@ -1065,13 +1065,13 @@ public:
|
||||
return rv;
|
||||
}
|
||||
/* Read Length */
|
||||
size_t length;
|
||||
uint16_t length;
|
||||
rv = UnpackPDU(pdu, length);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
/* Read Adv Data */
|
||||
rv = UnpackPDU(pdu, aArg3);
|
||||
rv = UnpackPDU(pdu, UnpackArray<uint8_t>(aArg3.mAdvData, length));
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
@ -939,12 +939,6 @@ UnpackPDU(BluetoothDaemonPDU& aPDU, BluetoothUuid& aOut)
|
||||
return aPDU.Read(aOut.mUuid, sizeof(aOut.mUuid));
|
||||
}
|
||||
|
||||
inline nsresult
|
||||
UnpackPDU(BluetoothDaemonPDU& aPDU, BluetoothGattAdvData& aOut)
|
||||
{
|
||||
return aPDU.Read(aOut.mAdvData, sizeof(aOut.mAdvData));
|
||||
}
|
||||
|
||||
nsresult
|
||||
UnpackPDU(BluetoothDaemonPDU& aPDU, BluetoothGattId& aOut);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user