fix: windows build typos (#7521)
This commit is contained in:
parent
4c326cd444
commit
9dc6377bd9
2 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue