Skip to content

Commit 5b87337

Browse files
[lldb][windows] fix copying instead of using a reference of STARTUPINFOW (#170653)
1 parent 9ad9572 commit 5b87337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Host/windows/ProcessLauncherWindows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ llvm::ErrorOr<std::vector<HANDLE>> ProcessLauncherWindows::GetInheritedHandles(
198198
const ProcessLaunchInfo &launch_info, STARTUPINFOEXW &startupinfoex,
199199
HANDLE stdout_handle, HANDLE stderr_handle, HANDLE stdin_handle) {
200200
std::vector<HANDLE> inherited_handles;
201-
STARTUPINFOW startupinfo = startupinfoex.StartupInfo;
201+
STARTUPINFOW &startupinfo = startupinfoex.StartupInfo;
202202

203203
startupinfo.hStdError =
204204
stderr_handle ? stderr_handle : GetStdHandle(STD_ERROR_HANDLE);

0 commit comments

Comments
 (0)