소스 검색

UI: Fix updater parameters missing a space

derrod 2 년 전
부모
커밋
1ea100e537
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      UI/update/win-update.cpp

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

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