summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-12-07 17:21:01 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-12-07 17:21:01 -0800
commitfaac5c1a0aac9b09c4edf3d3ca3ea266787fd0c5 (patch)
tree139a904456d22c49b5231a6f545f5b66912fb21c /media
parent14609818a401ee874482042131f7a3cbd77395b2 (diff)
parent5da864845e024833c4c7f641acd7c88187a6bc1e (diff)
downloadframeworks_av-faac5c1a0aac9b09c4edf3d3ca3ea266787fd0c5.zip
frameworks_av-faac5c1a0aac9b09c4edf3d3ca3ea266787fd0c5.tar.gz
frameworks_av-faac5c1a0aac9b09c4edf3d3ca3ea266787fd0c5.tar.bz2
Merge "MTP: Read property code before calling isDeviceProperty in MtpProperty::read()"
Diffstat (limited to 'media')
-rw-r--r--media/mtp/MtpProperty.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/media/mtp/MtpProperty.cpp b/media/mtp/MtpProperty.cpp
index 3b38720..b095ce1 100644
--- a/media/mtp/MtpProperty.cpp
+++ b/media/mtp/MtpProperty.cpp
@@ -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) {