mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1170971 - Part 1: Fix BluetoothGattReadParam unpacking in daemon backend. r=tzimmermann
This commit is contained in:
parent
bca85a6ab7
commit
33db16cb89
@ -729,7 +729,7 @@ struct BluetoothGattReadParam {
|
||||
BluetoothGattServiceId mServiceId;
|
||||
BluetoothGattId mCharId;
|
||||
BluetoothGattId mDescriptorId;
|
||||
uint32_t mValueType;
|
||||
uint16_t mValueType;
|
||||
uint16_t mValueLength;
|
||||
uint8_t mValue[BLUETOOTH_GATT_MAX_ATTR_LEN];
|
||||
uint8_t mStatus;
|
||||
|
@ -1772,13 +1772,13 @@ UnpackPDU(BluetoothDaemonPDU& aPDU, BluetoothGattReadParam& aOut)
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
/* unpack value type */
|
||||
rv = UnpackPDU(aPDU, aOut.mValueType);
|
||||
/* unpack status */
|
||||
rv = UnpackPDU(aPDU, aOut.mStatus);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
/* unpack status */
|
||||
rv = UnpackPDU(aPDU, aOut.mStatus);
|
||||
/* unpack value type */
|
||||
rv = UnpackPDU(aPDU, aOut.mValueType);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user