From 3eb2b321239b294c4922e38c0af88c344ab136a7 Mon Sep 17 00:00:00 2001 From: CedricMocquillon Date: Sun, 13 Dec 2020 14:09:14 +0100 Subject: [PATCH] Fix typpo issue on arguments --- components/crashcatcher/windows_crashcatcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/crashcatcher/windows_crashcatcher.cpp b/components/crashcatcher/windows_crashcatcher.cpp index 129907fc3b..8495e84f8d 100644 --- a/components/crashcatcher/windows_crashcatcher.cpp +++ b/components/crashcatcher/windows_crashcatcher.cpp @@ -149,7 +149,7 @@ namespace Crash std::wstringstream ss; ss << "--crash-monitor " << std::hex << duplicateHandle(mShmHandle); - std::wstring argumetns(ss.str()); + std::wstring arguments(ss.str()); STARTUPINFOW si; ZeroMemory(&si, sizeof(si)); @@ -157,7 +157,7 @@ namespace Crash PROCESS_INFORMATION pi; ZeroMemory(&pi, sizeof(pi)); - if (!CreateProcessW(&executablePath[0], &argumetns[0], NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi)) + if (!CreateProcessW(&executablePath[0], &arguments[0], NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi)) throw std::runtime_error("Could not start crash monitor process"); waitMonitor();