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

Commit 130f0c4c authored by Marco Nelissen's avatar Marco Nelissen Committed by Brint E. Kriebel
Browse files

Fix MTP delete

Bug: 18836972
Change-Id: I55335abc6181ba3a861773cd13ee3a72a179a926
parent f4d983a8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1119,10 +1119,10 @@ static void deletePath(const char* path) {
MtpResponseCode MtpServer::doDeleteObject() {
    if (!hasStorage())
        return MTP_RESPONSE_INVALID_OBJECT_HANDLE;
    if (mRequest.getParameterCount() < 2)
    if (mRequest.getParameterCount() < 1)
        return MTP_RESPONSE_INVALID_PARAMETER;
    MtpObjectHandle handle = mRequest.getParameter(1);
    MtpObjectFormat format = mRequest.getParameter(2);
    MtpObjectFormat format;
    // FIXME - support deleting all objects if handle is 0xFFFFFFFF
    // FIXME - implement deleting objects by format