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

Commit 804212ed authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "libgui: Handle createGraphicBuffer binder transcation failure"

parents d3714c2e 9b423a8b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -50,9 +50,13 @@ public:
        data.writeInt32(h);
        data.writeInt32(format);
        data.writeInt32(usage);
        remote()->transact(CREATE_GRAPHIC_BUFFER, data, &reply);
        status_t result = remote()->transact(CREATE_GRAPHIC_BUFFER, data, &reply);
        if(result != NO_ERROR){
            *error = result;
            return NULL;
        }
        sp<GraphicBuffer> graphicBuffer;
        status_t result = reply.readInt32();
        result = reply.readInt32();
        if (result == NO_ERROR) {
            graphicBuffer = new GraphicBuffer();
            result = reply.read(*graphicBuffer);