From c618f5330160b74682433ca7eced9ab6d0c3f0ca Mon Sep 17 00:00:00 2001 From: Pacuka <69674426+Pacuka@users.noreply.github.com> Date: Tue, 29 Sep 2026 21:31:53 +0200 Subject: [PATCH] fix(userservice): report invalid arguments as 0x80960005 SCE_USER_SERVICE_ERROR_INVALID_ARGUMENT is 0x80960005; 0x80960002 is NOT_INITIALIZED (the neighbouring NO_EVENT 0x80960007 and BUFFER_TOO_SHORT 0x8096000A already match the real sequence). The privacy getter returned the raw value and now uses the constant. Co-Authored-By: Claude Opus 5.5 --- core/libs/prx/libSceUserService/Export.cpp | 2 +- core/libs/prx/libSceUserService/UserService.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/libs/prx/libSceUserService/Export.cpp b/core/libs/prx/libSceUserService/Export.cpp index c5e146731..1695f4546 100644 --- a/core/libs/prx/libSceUserService/Export.cpp +++ b/core/libs/prx/libSceUserService/Export.cpp @@ -142,7 +142,7 @@ int APS5_VABI sceUserServiceTerminate(void) { // No PSN account exists, so the platform privacy setting reports the feature as not permitted. int APS5_VABI sceUserServiceGetPlatformPrivacyWs1(int32_t user_id, int32_t* value) { (void)user_id; - if (!value) return static_cast(0x80960002); + if (!value) return USER_SERVICE_ERROR_INVALID_ARGUMENT; *value = 0; return 0; } diff --git a/core/libs/prx/libSceUserService/UserService.hpp b/core/libs/prx/libSceUserService/UserService.hpp index 7a37d82c2..dcc140dad 100644 --- a/core/libs/prx/libSceUserService/UserService.hpp +++ b/core/libs/prx/libSceUserService/UserService.hpp @@ -5,7 +5,7 @@ #include constexpr int USER_SERVICE_OK = 0; -constexpr int USER_SERVICE_ERROR_INVALID_ARGUMENT = -2137653246; +constexpr int USER_SERVICE_ERROR_INVALID_ARGUMENT = -2137653243; constexpr int USER_SERVICE_ERROR_NO_EVENT = -2137653241; constexpr int USER_SERVICE_USER_ID_INVALID = -1; constexpr int USER_SERVICE_INITIAL_USER_ID = 0x10000000;