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