Skip to content

Commit b300746

Browse files
charles-zablitkcloudy0717
authored andcommitted
[lldb][windows] fix copying instead of using a reference of STARTUPINFOW (llvm#170653)
1 parent dbfbf04 commit b300746

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)