mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
Fix pointers issue in cellUserInfoGetList
Solves GetMemFromAddr(0x0) on NPEB01894.
This commit is contained in:
parent
0d0df4b491
commit
e280d54f3f
1 changed files with 11 additions and 3 deletions
|
@ -60,9 +60,17 @@ int cellUserInfoGetList(mem32_t listNum, mem_ptr_t<CellUserInfoUserList> listBuf
|
||||||
cellUserInfo.Warning("cellUserInfoGetList(listNum_addr=0x%x, listBuf_addr=0x%x, currentUserId_addr=0x%x)",
|
cellUserInfo.Warning("cellUserInfoGetList(listNum_addr=0x%x, listBuf_addr=0x%x, currentUserId_addr=0x%x)",
|
||||||
listNum.GetAddr(), listBuf.GetAddr(), currentUserId.GetAddr());
|
listNum.GetAddr(), listBuf.GetAddr(), currentUserId.GetAddr());
|
||||||
|
|
||||||
listNum = 1;
|
// If only listNum is NULL, an should will be returned
|
||||||
listBuf->userId[0] = 1;
|
if (listBuf.IsGood() && !listNum.IsGood())
|
||||||
currentUserId = 1;
|
return CELL_USERINFO_ERROR_PARAM;
|
||||||
|
if (listNum.IsGood())
|
||||||
|
listNum = 1;
|
||||||
|
if (listBuf.IsGood())
|
||||||
|
listBuf->userId[0] = 1;
|
||||||
|
|
||||||
|
if (currentUserId.IsGood())
|
||||||
|
currentUserId = 1;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue