Merge "MTP: Read property code before calling isDeviceProperty in MtpProperty::read()"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b3f522f34b
@@ -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