From 52b0fd4eb4f5fe383bfd11029328ed3050cfad98 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Wed, 12 May 2021 15:22:34 -0700 Subject: [PATCH] Use a comma-separated args string for UWP UWP apps get a single arguments string on launch rather than an array. The current implementation splits that args string on commas. This updates the UWP launch args generation to match. Part of https://github.com/flutter/flutter/issues/81756 Part of https://github.com/flutter/flutter/issues/82085 --- shell/platform/windows/uwptool_main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/platform/windows/uwptool_main.cc b/shell/platform/windows/uwptool_main.cc index 17252a604a648..196bcc2715f25 100644 --- a/shell/platform/windows/uwptool_main.cc +++ b/shell/platform/windows/uwptool_main.cc @@ -69,12 +69,12 @@ int main(int argc, char** argv) { // Get the package ID. std::string package_id = args[1]; - // Concatenate the remaining args, space-separated. + // Concatenate the remaining args, comma-separated. std::ostringstream app_args; for (int i = 2; i < args.size(); ++i) { app_args << args[i]; if (i < args.size() - 1) { - app_args << " "; + app_args << ","; } } int process_id = LaunchApp(flutter::Utf16FromUtf8(package_id),