[Kernel/XAM] XNotifyGetNext: Check for nullptr for param_ptr
This commit is contained in:
parent
cde092ece1
commit
4f8cdd9967
|
@ -67,10 +67,14 @@ dword_result_t XNotifyGetNext(dword_t handle, dword_t match_id,
|
|||
|
||||
if (dequeued) {
|
||||
*id_ptr = id;
|
||||
*param_ptr = param;
|
||||
if (param_ptr) {
|
||||
*param_ptr = param;
|
||||
}
|
||||
} else {
|
||||
*id_ptr = 0;
|
||||
*param_ptr = 0;
|
||||
if (param_ptr) {
|
||||
*param_ptr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
return dequeued ? 1 : 0;
|
||||
|
|
Loading…
Reference in New Issue