Browse Source

updater: Add workaround for broken CLI arguments

derrod 2 years ago
parent
commit
5fbe9cdb41
1 changed files with 6 additions and 0 deletions
  1. 6 0
      UI/win-update/updater/updater.cpp

+ 6 - 0
UI/win-update/updater/updater.cpp

@@ -1433,6 +1433,12 @@ static bool Update(wchar_t *cmdLine)
 				} else if (wcscmp(argv[i], L"--portable") ==
 					   0) {
 					bIsPortable = true;
+				} else if (wcsncmp(argv[i],
+						   L"--portable--branch=",
+						   19) == 0) {
+					/* Versions pre-29.1 beta 2 produce broken parameters :( */
+					bIsPortable = true;
+					branch = argv[i] + 19;
 				}
 			}
 			LocalFree((HLOCAL)argv);