mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-06 08:19:22 +02:00
Fatal: fix marshalling
This commit is contained in:
parent
a6492e9888
commit
81e6972ae1
@ -37,8 +37,9 @@ void fatalWithType(Result err, FatalType type) {
|
||||
struct {
|
||||
u64 magic;
|
||||
u64 cmd_id;
|
||||
u64 result;
|
||||
u64 type;
|
||||
u32 result;
|
||||
u32 type;
|
||||
u64 pid_placeholder;
|
||||
} *raw;
|
||||
|
||||
raw = ipcPrepareHeader(&c, sizeof(*raw));
|
||||
@ -47,6 +48,7 @@ void fatalWithType(Result err, FatalType type) {
|
||||
raw->cmd_id = 1;
|
||||
raw->result = err;
|
||||
raw->type = type;
|
||||
raw->pid_placeholder = 0; // Overwritten by fatal with PID descriptor.
|
||||
|
||||
ipcDispatch(srv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user