diff --git a/rpcs3/Emu/Cell/Modules/sceNp.cpp b/rpcs3/Emu/Cell/Modules/sceNp.cpp index 21478efcb4..a1bfc9ecef 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNp.cpp @@ -1417,6 +1417,16 @@ error_code sceNpBasicGetEvent(vm::ptr event, vm::ptr from, v { sceNp.todo("sceNpBasicGetEvent(event=*0x%x, from=*0x%x, data=*0x%x, size=*0x%x)", event, from, data, size); + if (!g_fxo->get()->is_initialized) + { + return SCE_NP_BASIC_ERROR_NOT_INITIALIZED; + } + + if (!event || !from || !data || !size) + { + return SCE_NP_BASIC_ERROR_INVALID_ARGUMENT; + } + // TODO: Check for other error and pass other events //*event = SCE_NP_BASIC_EVENT_OFFLINE; // This event only indicates a contact is offline, not the current status of the connection