From e7645739a63c9c71d499fd66d3c7685210594268 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 23 Feb 2016 16:58:57 +0100 Subject: [PATCH] Fixed: Don't append empty login, password or shard ID to batch --HG-- branch : develop --- code/ryzom/client/src/login_patch.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/code/ryzom/client/src/login_patch.cpp b/code/ryzom/client/src/login_patch.cpp index 35dc39496..0d0209427 100644 --- a/code/ryzom/client/src/login_patch.cpp +++ b/code/ryzom/client/src/login_patch.cpp @@ -1029,12 +1029,20 @@ void CPatchManager::executeBatchFile() arguments += "\"" + RyzomFilename + "\" \"" + ClientPatchPath + "\" " + ClientRootPath + "\""; #endif - // append login and password - arguments += " " + LoginLogin + " " + LoginPassword; - - if (!r2Mode) + // append login, password and shard + if (!LoginLogin.empty()) { - arguments += " " + toString(LoginShardId); + arguments += " " + LoginLogin; + + if (!LoginPassword.empty()) + { + arguments += " " + LoginPassword; + + if (!r2Mode) + { + arguments += " " + toString(LoginShardId); + } + } } if (!launchProgram(batchFilename, arguments, false))