mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Correct XPC bool serialization
This commit is contained in:
@@ -158,7 +158,7 @@ impl XPCObject {
|
|||||||
match self {
|
match self {
|
||||||
XPCObject::Bool(val) => {
|
XPCObject::Bool(val) => {
|
||||||
buf.extend_from_slice(&(XPCType::Bool as u32).to_le_bytes());
|
buf.extend_from_slice(&(XPCType::Bool as u32).to_le_bytes());
|
||||||
buf.push(if *val { 0 } else { 1 });
|
buf.push(if *val { 1 } else { 0 });
|
||||||
buf.extend_from_slice(&[0].repeat(3));
|
buf.extend_from_slice(&[0].repeat(3));
|
||||||
}
|
}
|
||||||
XPCObject::Dictionary(dict) => {
|
XPCObject::Dictionary(dict) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user