From caea340985c606e6928a5d50be50f9954026ee4b Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Thu, 14 Oct 2021 18:42:19 +0200 Subject: [PATCH] RPCN: Set error state on empty login/password --- rpcs3/Emu/NP/rpcn_client.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/NP/rpcn_client.cpp b/rpcs3/Emu/NP/rpcn_client.cpp index 176b338369..7acbbe44df 100644 --- a/rpcs3/Emu/NP/rpcn_client.cpp +++ b/rpcs3/Emu/NP/rpcn_client.cpp @@ -716,8 +716,15 @@ namespace rpcn bool rpcn_client::login(const std::string& npid, const std::string& password, const std::string& token) { - if (npid.empty() || password.empty()) + if (npid.empty()) { + state = rpcn_state::failure_id_username; + return false; + } + + if (password.empty()) + { + state = rpcn_state::failure_id_password; return false; }