From 8d916a444676746ccb903ddb144aae3315b44933 Mon Sep 17 00:00:00 2001 From: "Dax T. Games" Date: Thu, 9 Nov 2023 04:58:26 -0800 Subject: [PATCH] remove env refresh race condition --- launcher/src/CmderLauncher.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/launcher/src/CmderLauncher.cpp b/launcher/src/CmderLauncher.cpp index 9f033c3..3fe20c5 100644 --- a/launcher/src/CmderLauncher.cpp +++ b/launcher/src/CmderLauncher.cpp @@ -469,9 +469,6 @@ void StartCmder(std::wstring path = L"", bool is_single_mode = false, std::wstr MessageBox(NULL, _T("Unable to create the ConEmu process!"), _T("Error"), MB_OK); return; } - - LRESULT lr = SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)"Environment", SMTO_ABORTIFHUNG | SMTO_NOTIMEOUTIFNOTHUNG, 5000, NULL); - lr = SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)L"Environment", SMTO_ABORTIFHUNG | SMTO_NOTIMEOUTIFNOTHUNG, 5000, NULL); // For Windows >= 8 } bool IsUserOnly(std::wstring opt)