From 7cb4c3322b3a282e63e77b0d2205fd2e51b8b932 Mon Sep 17 00:00:00 2001 From: bigbiff Date: Wed, 26 Nov 2014 20:36:07 -0500 Subject: add function to partition.cpp to return max file size to mtp responder Change-Id: If8114b5eac741db6c512fb35cb48e3825c2ff098 --- mtp/mtp_MtpServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mtp/mtp_MtpServer.cpp') diff --git a/mtp/mtp_MtpServer.cpp b/mtp/mtp_MtpServer.cpp index 9df564ffc..17facdd70 100755 --- a/mtp/mtp_MtpServer.cpp +++ b/mtp/mtp_MtpServer.cpp @@ -123,7 +123,7 @@ void twmtp_MtpServer::add_storage() int storageID = stores->at(i)->mtpid; long reserveSpace = 1; bool removable = false; - long maxFileSize = 1000000000L; + long maxFileSize = stores->at(i)->maxFileSize; if (descriptionStr != "") { MtpStorage* storage = new MtpStorage(storageID, &pathStr[0], &descriptionStr[0], reserveSpace, removable, maxFileSize, refserver); server->addStorage(storage); -- cgit v1.2.3