From 821a9897ef9e7c73a3251cd57e2f9c8bfeb0def4 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Mon, 23 Mar 2020 10:46:51 +0300 Subject: [PATCH] [Kernel/XAM] Even more detailed rationale for XNotifyGetNext param_ptr null check --- src/xenia/kernel/xam/xam_notify.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/xam/xam_notify.cc b/src/xenia/kernel/xam/xam_notify.cc index f7b009d9c..a45b29bdf 100644 --- a/src/xenia/kernel/xam/xam_notify.cc +++ b/src/xenia/kernel/xam/xam_notify.cc @@ -65,7 +65,8 @@ dword_result_t XNotifyGetNext(dword_t handle, dword_t match_id, dequeued = listener->DequeueNotification(&id, ¶m); } - // param_ptr may be null - Ghost Recon Advanced Warfighter 2 Demo. + // param_ptr may be null - Ghost Recon Advanced Warfighter 2 Demo explicitly + // passes nullptr in the code. // https://github.com/xenia-project/xenia/pull/1577 if (dequeued) { *id_ptr = id;