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

Commit 0a7eaecf authored by Joe Onorato's avatar Joe Onorato Committed by Mike Lockwood
Browse files

Don't try to unmarshal void return types when there are out parameters being returned.

parent fa7b0614
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -739,12 +739,14 @@ generate_result_dispatcher_method(const method_type* method,
    // The return value
    {
        Type* t = NAMES.Search(method->type.type.data);
        if (t != VOID_TYPE) {
            Variable* rv = new Variable(t, "rv");
            dispatchMethod->statements->Add(new VariableDeclaration(rv));
            generate_create_from_data(t, dispatchMethod->statements, "_result", rv,
                    resultData, &classLoader);
            realCall->arguments.push_back(rv);
        }
    }

    VariableFactory stubArgs("arg");
    arg = method->args;