From 18d92fee40d139aa62e7b5ea50397d68501c6a21 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 18 Aug 2023 22:55:42 +0200 Subject: [PATCH] Fix typo in CLI wrapper code --- cmake/templates/cli-wrapper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/templates/cli-wrapper.cpp b/cmake/templates/cli-wrapper.cpp index 4907523..f90af04 100644 --- a/cmake/templates/cli-wrapper.cpp +++ b/cmake/templates/cli-wrapper.cpp @@ -46,7 +46,7 @@ int main() std::wcscpy(pathBuffer + filenameStart + appendixStart, L".exe"); // compute startup parameters - auto commadLine = GetCommandLineW(); + auto commandLine = GetCommandLineW(); auto processInformation = PROCESS_INFORMATION(); auto startupInfo = STARTUPINFOW(); ZeroMemory(&startupInfo, sizeof(startupInfo)); @@ -59,7 +59,7 @@ int main() // start main executable in new group and print debug information if that's not possible auto res = CreateProcessW(pathBuffer, // path of main executable - commadLine, // command line arguments + commandLine, // command line arguments nullptr, // process handle not inheritable nullptr, // thread handle not inheritable true, // set handle inheritance to true @@ -71,7 +71,7 @@ int main() if (!res) { std::cerr << "Unable to launch main executable: " << std::error_code(GetLastError(), std::system_category()) << '\n'; std::wcerr << L" - assumed path: " << pathBuffer << L'\n'; - std::wcerr << L" - assumed command-line: " << commadLine << L'\n'; + std::wcerr << L" - assumed command-line: " << commandLine << L'\n'; return EXIT_FAILURE; }