MTP: Read property code before calling isDeviceProperty in MtpProperty::read()
Change-Id: I0b1493f3af5d9caac08327f9ffba91ee255d3d55 Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
@@ -122,9 +122,8 @@ MtpProperty::~MtpProperty() {
|
||||
}
|
||||
|
||||
void MtpProperty::read(MtpDataPacket& packet) {
|
||||
bool deviceProp = isDeviceProperty();
|
||||
|
||||
mCode = packet.getUInt16();
|
||||
bool deviceProp = isDeviceProperty();
|
||||
mType = packet.getUInt16();
|
||||
mWriteable = (packet.getUInt8() == 1);
|
||||
switch (mType) {
|
||||
|
||||
Reference in New Issue
Block a user