Browse Source

UI: Fix updater parameters missing a space

derrod 2 years ago
parent
commit
1ea100e537
1 changed files with 4 additions and 1 deletions
  1. 4 1
      UI/update/win-update.cpp

+ 4 - 1
UI/update/win-update.cpp

@@ -367,8 +367,11 @@ try {
 	string parameters = "";
 	string parameters = "";
 	if (App()->IsPortableMode())
 	if (App()->IsPortableMode())
 		parameters += "--portable";
 		parameters += "--portable";
-	if (branch != WIN_DEFAULT_BRANCH)
+	if (branch != WIN_DEFAULT_BRANCH) {
+		if (!parameters.empty())
+			parameters += " ";
 		parameters += "--branch=" + branch;
 		parameters += "--branch=" + branch;
+	}
 
 
 	BPtr<wchar_t> lpParameters;
 	BPtr<wchar_t> lpParameters;
 	size = os_utf8_to_wcs_ptr(parameters.c_str(), 0, &lpParameters);
 	size = os_utf8_to_wcs_ptr(parameters.c_str(), 0, &lpParameters);