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/MtpServer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mtp/MtpServer.cpp') diff --git a/mtp/MtpServer.cpp b/mtp/MtpServer.cpp index c044cad7f..66a641404 100755 --- a/mtp/MtpServer.cpp +++ b/mtp/MtpServer.cpp @@ -1078,8 +1078,10 @@ MtpResponseCode MtpServer::doSendObject() { unlink(mSendObjectFilePath); if (errno == ECANCELED) result = MTP_RESPONSE_TRANSACTION_CANCELLED; - else + else { + MTPD("errno: %d\n", errno); result = MTP_RESPONSE_GENERAL_ERROR; + } } done: @@ -1093,7 +1095,7 @@ done: mSendObjectHandle = kInvalidObjectHandle; MTPD("result: %d\n", result); mSendObjectFormat = 0; - return MTP_RESPONSE_OK; + return result; } static void deleteRecursive(const char* path) { -- cgit v1.2.3