From 61bcd467a6b63ffeaafb1894384e70a024f24554 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Mon, 23 Mar 2020 10:38:45 +0300 Subject: [PATCH] [Kernel/XAM] Rationale for XNotifyGetNext param_ptr null check --- src/xenia/kernel/xam/xam_notify.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xenia/kernel/xam/xam_notify.cc b/src/xenia/kernel/xam/xam_notify.cc index 9fb4eda25..f7b009d9c 100644 --- a/src/xenia/kernel/xam/xam_notify.cc +++ b/src/xenia/kernel/xam/xam_notify.cc @@ -65,6 +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. + // https://github.com/xenia-project/xenia/pull/1577 if (dequeued) { *id_ptr = id; if (param_ptr) {