[Kernel/XAM] XNotifyGetNext: Check for nullptr for param_ptr

This commit is contained in:
Gliniak 2020-03-22 21:19:21 +01:00 committed by Rick Gibbed
parent cde092ece1
commit 4f8cdd9967

View File

@ -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;