Correct XPC bool serialization

This commit is contained in:
Jackson Coxson
2025-07-18 23:29:35 -06:00
parent e4646ddffd
commit a84321765d

View File

@@ -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) => {