Merge pull request #154 from Pacuka/fix/userservice-invalid-argument

fix(userservice): report invalid arguments as 0x80960005
This commit is contained in:
boykopovar
2026-09-30 19:25:46 +03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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<int>(0x80960002);
if (!value) return USER_SERVICE_ERROR_INVALID_ARGUMENT;
*value = 0;
return 0;
}
@@ -5,7 +5,7 @@
#include <cstdint>
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;