From 623d72f1960dcceb14163ab57ec99b3298ea7974 Mon Sep 17 00:00:00 2001 From: partouf Date: Fri, 15 Sep 2023 11:51:50 -0700 Subject: [PATCH] bugfix --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index ac0f372..1fe281a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -61,7 +61,7 @@ DWORD SpawnProcess(const cewrapper::Job &job, STARTUPINFOEX &si, HANDLE hUserTok cewrapper::CheckWin32(CreateProcessAsUserW(hUserToken, config.progid.c_str(), cmdline.data(), nullptr, nullptr, false, NORMAL_PRIORITY_CLASS | CREATE_UNICODE_ENVIRONMENT | CREATE_SUSPENDED, nullptr, nullptr, - nullptr, &pi), + &si.StartupInfo, &pi), L"CreateProcessAsUserW"); }