diff options
Diffstat (limited to 'mtp')
-rwxr-xr-x | mtp/MtpServer.cpp | 1 | ||||
-rwxr-xr-x | mtp/mtp_MtpServer.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/mtp/MtpServer.cpp b/mtp/MtpServer.cpp index f99554b03..142b821b8 100755 --- a/mtp/MtpServer.cpp +++ b/mtp/MtpServer.cpp @@ -1001,6 +1001,7 @@ MtpResponseCode MtpServer::doSendObjectInfo() { return MTP_RESPONSE_STORAGE_FULL; uint64_t maxFileSize = storage->getMaxFileSize(); // check storage max file size + MTPD("maxFileSize: %ld\n", maxFileSize); if (maxFileSize != 0) { // if mSendObjectFileSize is 0xFFFFFFFF, then all we know is the file size // is >= 0xFFFFFFFF diff --git a/mtp/mtp_MtpServer.cpp b/mtp/mtp_MtpServer.cpp index f49270fdf..5f509eb0d 100755 --- a/mtp/mtp_MtpServer.cpp +++ b/mtp/mtp_MtpServer.cpp @@ -130,7 +130,7 @@ void twmtp_MtpServer::add_storage() int storageID = stores->at(i)->mtpid; long reserveSpace = 1; bool removable = false; - long maxFileSize = stores->at(i)->maxFileSize; + uint64_t maxFileSize = stores->at(i)->maxFileSize; if (descriptionStr != "") { MtpStorage* storage = new MtpStorage(storageID, &pathStr[0], &descriptionStr[0], reserveSpace, removable, maxFileSize, refserver); server->addStorage(storage); |