mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-07 00:29:23 +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 {
|
struct {
|
||||||
u64 magic;
|
u64 magic;
|
||||||
u64 cmd_id;
|
u64 cmd_id;
|
||||||
u64 result;
|
u32 result;
|
||||||
u64 type;
|
u32 type;
|
||||||
|
u64 pid_placeholder;
|
||||||
} *raw;
|
} *raw;
|
||||||
|
|
||||||
raw = ipcPrepareHeader(&c, sizeof(*raw));
|
raw = ipcPrepareHeader(&c, sizeof(*raw));
|
||||||
@ -47,6 +48,7 @@ void fatalWithType(Result err, FatalType type) {
|
|||||||
raw->cmd_id = 1;
|
raw->cmd_id = 1;
|
||||||
raw->result = err;
|
raw->result = err;
|
||||||
raw->type = type;
|
raw->type = type;
|
||||||
|
raw->pid_placeholder = 0; // Overwritten by fatal with PID descriptor.
|
||||||
|
|
||||||
ipcDispatch(srv);
|
ipcDispatch(srv);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user