1From e0e9a98697a39ad101ffde1b76ef66aacbea840f Mon Sep 17 00:00:00 2001
2From: Yu YongZhen <yuyz@rock-chips.com>
3Date: Thu, 12 Dec 2019 15:36:14 +0800
4Subject: [PATCH] fix file property MTP_PROPERTY_DATE_MODIFIED
5
6Signed-off-by: Yu YongZhen <yuyz@rock-chips.com>
7---
8 server/UbuntuMtpDatabase.h | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11diff --git a/server/UbuntuMtpDatabase.h b/server/UbuntuMtpDatabase.h
12index 71561bf..73200de 100755
13--- a/server/UbuntuMtpDatabase.h
14+++ b/server/UbuntuMtpDatabase.h
15@@ -815,7 +815,7 @@ public:
16          */
17
18         if (property == ALL_PROPERTIES)
19-             packet.putUInt32(6 * handles.size());
20+             packet.putUInt32(14 * handles.size());
21         else
22              packet.putUInt32(1 * handles.size());
23
24@@ -921,7 +921,7 @@ public:
25                 char date[20];
26                 formatDateTime(entry.last_modified, date, sizeof(date));
27                 packet.putUInt32(i);
28-                packet.putUInt16(MTP_PROPERTY_DATE_CREATED);
29+                packet.putUInt16(MTP_PROPERTY_DATE_MODIFIED);
30                 packet.putUInt16(MTP_TYPE_STR);
31                 packet.putString(date);
32             }
33--
342.7.4
35
36