From 7315ba04e676a6c04838dd945026f025c1c5f099 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Tue, 27 Dec 2022 19:18:58 +0000 Subject: [PATCH] Fixup optional flattenable binder obj structure --- app/src/main/cpp/skyline/services/hosbinder/parcel.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } }