fix: windows build typos (#7521)

This commit is contained in:
enzious 2024-09-18 05:09:56 -05:00 committed by GitHub
parent 4c326cd444
commit 9dc6377bd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -604,13 +604,13 @@ void MSWindowsWatchdog::shutdownExistingProcesses() {
void MSWindowsWatchdog::getActiveDesktop(LPSECURITY_ATTRIBUTES security) {
String installedDir = ARCH->getInstalledDirectory();
if (!installedDir.empty()) {
String deskflow - legacyCommand;
deskflow - legacyCommand.append("\"")
String deskflowLegacyCommand;
deskflowLegacyCommand.append("\"")
.append(installedDir)
.append("\\")
.append("deskflow-legacy")
.append("\"");
deskflow - legacyCommand.append(" --get-active-desktop");
deskflowLegacyCommand.append(" --get-active-desktop");
m_session.updateActiveSession();
bool elevateProcess = m_elevateProcess;
@ -619,7 +619,7 @@ void MSWindowsWatchdog::getActiveDesktop(LPSECURITY_ATTRIBUTES security) {
m_elevateProcess = elevateProcess;
BOOL createRet =
startProcessAsUser(deskflow - legacyCommand, userToken, security);
startProcessAsUser(deskflowLegacyCommand, userToken, security);
auto pid = m_processInfo.dwProcessId;
if (!createRet) {
DWORD rc = GetLastError();