Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 745e3601 authored by Mike Lockwood's avatar Mike Lockwood Committed by Android Git Automerger
Browse files

am 0c265c88: Merge "MtpServer: Pass 0xFFFFFFFF for file size when receiving...

am 0c265c88: Merge "MtpServer: Pass 0xFFFFFFFF for file size when receiving files >= 4GB in size" into ics-mr0

* commit '0c265c88':
  MtpServer: Pass 0xFFFFFFFF for file size when receiving files >= 4GB in size
parents 99b1993f 0c265c88
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -947,7 +947,12 @@ MtpResponseCode MtpServer::doSendObject() {

    if (mSendObjectFileSize - initialData > 0) {
        mfr.offset = initialData;
        if (mSendObjectFileSize == 0xFFFFFFFF) {
            // tell driver to read until it receives a short packet
            mfr.length = 0xFFFFFFFF;
        } else {
            mfr.length = mSendObjectFileSize - initialData;
        }

        LOGV("receiving %s\n", (const char *)mSendObjectFilePath);
        // transfer the file