diff --git a/app/src/main/cpp/skyline/services/hosbinder/parcel.h b/app/src/main/cpp/skyline/services/hosbinder/parcel.h index af76ade7..b860a13e 100644 --- a/app/src/main/cpp/skyline/services/hosbinder/parcel.h +++ b/app/src/main/cpp/skyline/services/hosbinder/parcel.h @@ -86,8 +86,7 @@ namespace skyline::service::hosbinder { void PushOptionalFlattenable(ObjectType *pointer) { Push(pointer != nullptr); if (pointer) { - Push(sizeof(ObjectType)); // Object Size - Push(0); // FD Count + Push(sizeof(ObjectType)); // Object Size Push(*pointer); } } @@ -96,8 +95,7 @@ namespace skyline::service::hosbinder { void PushOptionalFlattenable(std::optional object) { Push(object.has_value()); if (object) { - Push(sizeof(ObjectType)); - Push(0); + Push(sizeof(ObjectType)); Push(*object); } }