mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 19:21:55 +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) {
|
void PushOptionalFlattenable(ObjectType *pointer) {
|
||||||
Push<u32>(pointer != nullptr);
|
Push<u32>(pointer != nullptr);
|
||||||
if (pointer) {
|
if (pointer) {
|
||||||
Push<u32>(sizeof(ObjectType)); // Object Size
|
Push<i64>(sizeof(ObjectType)); // Object Size
|
||||||
Push<u32>(0); // FD Count
|
|
||||||
Push(*pointer);
|
Push(*pointer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -96,8 +95,7 @@ namespace skyline::service::hosbinder {
|
|||||||
void PushOptionalFlattenable(std::optional<ObjectType> object) {
|
void PushOptionalFlattenable(std::optional<ObjectType> object) {
|
||||||
Push<u32>(object.has_value());
|
Push<u32>(object.has_value());
|
||||||
if (object) {
|
if (object) {
|
||||||
Push<u32>(sizeof(ObjectType));
|
Push<i64>(sizeof(ObjectType));
|
||||||
Push<u32>(0);
|
|
||||||
Push(*object);
|
Push(*object);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user