diff options
-rw-r--r-- | lldb/source/Host/windows/HostProcessWindows.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Plugins/Process/Windows/ProcessWindows.cpp | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lldb/source/Host/windows/HostProcessWindows.cpp b/lldb/source/Host/windows/HostProcessWindows.cpp index 8388e21b853..c42bc555906 100644 --- a/lldb/source/Host/windows/HostProcessWindows.cpp +++ b/lldb/source/Host/windows/HostProcessWindows.cpp @@ -115,7 +115,7 @@ HostProcessWindows::MonitorThread(void *thread_arg) DWORD wait_result = ::WaitForSingleObject(info->process_handle, INFINITE); ::GetExitCodeProcess(info->process_handle, &exit_code); info->callback(info->baton, ::GetProcessId(info->process_handle), true, 0, exit_code); - + ::CloseHandle(info->process_handle); delete (info); } return 0; diff --git a/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp index a61a4d2b909..50ee9f60217 100644 --- a/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp @@ -89,11 +89,7 @@ Error ProcessWindows::DoLaunch(Module *exe_module, ProcessLaunchInfo &launch_info) { - Error error; - ProcessLauncherWindows launcher; - HostProcess process = launcher.LaunchProcess(launch_info, error); - launch_info.SetProcessID(process.GetProcessId()); - return error; + return Host::LaunchProcess(launch_info); } Error |