add function to partition.cpp to return max file size to mtp responder

Change-Id: If8114b5eac741db6c512fb35cb48e3825c2ff098
This commit is contained in:
bigbiff
2014-12-04 17:32:27 +01:00
committed by Dees Troy
parent 253368a072
commit 7cb4c3322b
8 changed files with 36 additions and 6 deletions
+4 -2
View File
@@ -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) {