Skip to content

Commit 5bf47c2

Browse files
authored
Fix indent
1 parent 033c28a commit 5bf47c2

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

docs/extensibility/debugger/event-sources-visual-studio-sdk.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,53 +15,53 @@ ms.workload:
1515
There are two sources of events: the debug engine (DE) and the Session Debug Manager (SDM). Events sent from a DE have a non-NULL engine, while events sent from the SDM have a NULL engine.
1616

1717
## Example
18-
The following example shows how to send the **IDebugProgramCreateEvent2** from the DE to the SDM.
18+
The following example shows how to send the **IDebugProgramCreateEvent2** from the DE to the SDM.
1919

2020
```csharp
2121
CDebugProgramCreateEvent* pProgramCreateEvent = new CDebugProgramCreateEvent();
2222
if (FAILED(pCallback->Event(m_pEngine, NULL, m_pProgram, NULL, pProgramCreateEvent, IID_IDebugProgramCreateEvent2, EVENT_ASYNCHRONOUS)))
2323
{
24-
// Handle failure here.
24+
// Handle failure here.
2525
}
2626
]
2727

2828
CEvent * pProgCreate = new CEvent(IID_IDebugProgramCreateEvent2, EVENT_ASYNCHRONOUS);
2929
pProgCreate->SendEvent(pCallback, m_pEngine, (IDebugProgram2 *)this, NULL);
3030

3131
HRESULT CEvent::SendEvent(IDebugEventCallback2 *pCallback, IDebugEngine2 *pEngine, IDebugProgram2 *pProgram, IDebugThread2 *pThread) {
32-
HRESULT hr;
32+
HRESULT hr;
3333

34-
if (m_dwAttrib & EVENT_STOPPING)
35-
{
36-
hr = SendStoppingEvent(pCallback, pEngine, pProgram, pThread);
37-
}
38-
else if (m_dwAttrib & EVENT_SYNCHRONOUS)
39-
{
40-
hr = SendSynchronousEvent(pCallback, pEngine, pProgram, pThread);
41-
}
42-
else
43-
{
44-
assert(m_dwAttrib == 0);
45-
hr = SendAsynchronousEvent(pCallback, pEngine, pProgram, pThread);
46-
}
34+
if (m_dwAttrib & EVENT_STOPPING)
35+
{
36+
hr = SendStoppingEvent(pCallback, pEngine, pProgram, pThread);
37+
}
38+
else if (m_dwAttrib & EVENT_SYNCHRONOUS)
39+
{
40+
hr = SendSynchronousEvent(pCallback, pEngine, pProgram, pThread);
41+
}
42+
else
43+
{
44+
assert(m_dwAttrib == 0);
45+
hr = SendAsynchronousEvent(pCallback, pEngine, pProgram, pThread);
46+
}
4747

48-
return hr;
48+
return hr;
4949
}
5050

5151
HRESULT CEvent::SendAsynchronousEvent(IDebugEventCallback2 *pCallback, IDebugEngine2 *pEngine, IDebugProgram2 *pProgram, IDebugThread2 *pThread) {
5252

5353
HRESULT hr;
5454

55-
// Make sure the CEvent object running this code is not deleted until the code completes.
56-
AddRef();
55+
// Make sure the CEvent object running this code is not deleted until the code completes.
56+
AddRef();
5757

58-
pCallback->Event(pEngine, NULL, pProgram, pThread, (IDebugEvent2 *)this, m_riid, m_dwAttrib);
58+
pCallback->Event(pEngine, NULL, pProgram, pThread, (IDebugEvent2 *)this, m_riid, m_dwAttrib);
5959

60-
// No error recovery here.
61-
hr = S_OK;
60+
// No error recovery here.
61+
hr = S_OK;
6262

63-
Release();
64-
return hr;
63+
Release();
64+
return hr;
6565
}
6666

6767
```

0 commit comments

Comments
 (0)