diff options
Diffstat (limited to 'src/debug/di/windowspipeline.cpp')
-rw-r--r-- | src/debug/di/windowspipeline.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/debug/di/windowspipeline.cpp b/src/debug/di/windowspipeline.cpp index c3050e3290..6e58f0be15 100644 --- a/src/debug/di/windowspipeline.cpp +++ b/src/debug/di/windowspipeline.cpp @@ -74,7 +74,7 @@ public: LPPROCESS_INFORMATION lpProcessInformation); // Attach - virtual HRESULT DebugActiveProcess(MachineInfo machineInfo, DWORD processId); + virtual HRESULT DebugActiveProcess(MachineInfo machineInfo, const ProcessDescriptor& processDescriptor); // Detach virtual HRESULT DebugActiveProcessStop(DWORD processId); @@ -205,15 +205,15 @@ HRESULT WindowsNativePipeline::CreateProcessUnderDebugger( } // Attach the debugger to this process. -HRESULT WindowsNativePipeline::DebugActiveProcess(MachineInfo machineInfo, DWORD processId) +HRESULT WindowsNativePipeline::DebugActiveProcess(MachineInfo machineInfo, const ProcessDescriptor& processDescriptor) { HRESULT hr = E_FAIL; - BOOL ret = ::DebugActiveProcess(processId); + BOOL ret = ::DebugActiveProcess(processDescriptor.m_Pid); if (ret) { hr = S_OK; - m_dwProcessId = processId; + m_dwProcessId = processDescriptor.m_Pid; UpdateDebugSetProcessKillOnExit(); } else @@ -233,7 +233,7 @@ HRESULT WindowsNativePipeline::DebugActiveProcess(MachineInfo machineInfo, DWORD // attached. But I think it's better to only return the specific error code if we know for sure // the case is true. BOOL fIsDebuggerPresent = FALSE; - if (SUCCEEDED(IsRemoteDebuggerPresent(processId, &fIsDebuggerPresent))) + if (SUCCEEDED(IsRemoteDebuggerPresent(processDescriptor.m_Pid, &fIsDebuggerPresent))) { if (fIsDebuggerPresent) { |