mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 21:55:08 +01:00
Fixup optional flattenable binder obj structure
This commit is contained in:
parent
90e21b0ca1
commit
7315ba04e6
@ -86,8 +86,7 @@ namespace skyline::service::hosbinder {
|
||||
void PushOptionalFlattenable(ObjectType *pointer) {
|
||||
Push<u32>(pointer != nullptr);
|
||||
if (pointer) {
|
||||
Push<u32>(sizeof(ObjectType)); // Object Size
|
||||
Push<u32>(0); // FD Count
|
||||
Push<i64>(sizeof(ObjectType)); // Object Size
|
||||
Push(*pointer);
|
||||
}
|
||||
}
|
||||
@ -96,8 +95,7 @@ namespace skyline::service::hosbinder {
|
||||
void PushOptionalFlattenable(std::optional<ObjectType> object) {
|
||||
Push<u32>(object.has_value());
|
||||
if (object) {
|
||||
Push<u32>(sizeof(ObjectType));
|
||||
Push<u32>(0);
|
||||
Push<i64>(sizeof(ObjectType));
|
||||
Push(*object);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user