Skip to content

Commit 1e3ef15

Browse files
authored
Remove the explicit desktop field when creating a Windows process (#13930)
1 parent f02f8ef commit 1e3ef15

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

src/windows/common/SubProcess.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ void SubProcess::SetFlags(DWORD Flag)
9292
WI_SetAllFlags(m_flags, Flag);
9393
}
9494

95-
void SubProcess::SetDesktop(LPCWSTR Desktop)
96-
{
97-
m_desktop = Desktop;
98-
}
99-
10095
void SubProcess::SetToken(HANDLE Token)
10196
{
10297
m_token = Token;

src/windows/common/SubProcess.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class SubProcess
3737
void InheritHandle(HANDLE Handle);
3838
void SetEnvironment(LPVOID Environment);
3939
void SetWorkingDirectory(LPCWSTR Directory);
40-
void SetDesktop(LPCWSTR Desktop);
4140
void SetToken(HANDLE Token);
4241
void SetShowWindow(WORD Show);
4342
void SetFlags(DWORD Flag);

src/windows/common/interop.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ CreateProcessResult CreateProcess(_In_ CreateProcessParsed* Parsed, _In_ HANDLE
195195
wsl::windows::common::helpers::SetHandleInheritable(StdErr);
196196

197197
wsl::windows::common::SubProcess process(Parsed->ApplicationName.c_str(), Parsed->CommandLine(), CREATE_UNICODE_ENVIRONMENT);
198-
process.SetDesktop(L"winsta0\\default");
199198

200199
CreateProcessResult Result{};
201200
if (Parsed->CreatePseudoconsole)

0 commit comments

Comments
 (0)