Stratosphere: Fix IPC rawdata out size, QueryPointerBufferSize works on hardware now.

This commit is contained in:
Michael Scire 2018-04-19 16:53:09 -06:00
parent eded273328
commit 271272e13b
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ Result DebugMonitorService::dispatch(IpcParsedCommand *r, IpcCommand *out_c, u32
rc = get_nso_info(((u64 *)in_rawdata)[0], r->Statics[0], r->StaticSizes[0], out_rawdata);
if (R_SUCCEEDED(rc)) {
*out_raw_data_count = 4;
*out_raw_data_count = 1;
} else {
*out_raw_data_count = 0;
}

View File

@ -24,7 +24,7 @@ Result ProcessManagerService::dispatch(IpcParsedCommand *r, IpcCommand *out_c, u
rc = register_title((Registration::TidSid *)in_rawdata, &out_index);
if (R_SUCCEEDED(rc)) {
((u64 *)out_rawdata)[0] = out_index;
*out_raw_data_count = 8;
*out_raw_data_count = 2;
} else {
((u64 *)out_rawdata)[0] = 0;
*out_raw_data_count = 0;

View File

@ -138,7 +138,7 @@ class ServiceSession : public IWaitable {
u64 retval;
} *raw;
raw = (decltype(raw))ipcPrepareHeader(&c, out_words);
raw = (decltype(raw))ipcPrepareHeader(&c, out_words * 4);
raw->magic = SFCO_MAGIC;
raw->retval = retval;