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