@@ -24,7 +24,6 @@ HRESULT MultiplyLoaded::InitializeCommon(IUnknown* pICorProfilerInfoUnk)
2424    Profiler::Initialize (pICorProfilerInfoUnk);
2525
2626    HRESULT hr = S_OK;
27-     printf (" Setting exception mask\n " 
2827    if  (FAILED (hr = pCorProfilerInfo->SetEventMask2 (COR_PRF_MONITOR_EXCEPTIONS, 0 )))
2928    {
3029        _failures++;
@@ -37,11 +36,13 @@ HRESULT MultiplyLoaded::InitializeCommon(IUnknown* pICorProfilerInfoUnk)
3736
3837HRESULT MultiplyLoaded::Initialize (IUnknown* pICorProfilerInfoUnk)
3938{
39+     printf (" MultiplyLoaded::Initialize\n " 
4040    return  InitializeCommon (pICorProfilerInfoUnk);
4141}
4242
4343HRESULT MultiplyLoaded::InitializeForAttach (IUnknown* pICorProfilerInfoUnk, void * pvClientData, UINT cbClientData)
4444{
45+     printf (" MultiplyLoaded::InitializeForAttach\n " 
4546    return  InitializeCommon (pICorProfilerInfoUnk);
4647}
4748
@@ -56,8 +57,8 @@ HRESULT MultiplyLoaded::ProfilerDetachSucceeded()
5657    ++_detachCount;
5758
5859    printf (" ProfilerDetachSucceeded _detachCount=%d\n " load ());
59-     if  (_detachCount == ( MAX_PROFILERS -  1 ) 
60-         &&  _exceptionThrownSeenCount >= ( MAX_PROFILERS -  1 ) 
60+     if  (_detachCount == MAX_PROFILERS
61+         &&  _exceptionThrownSeenCount >= MAX_PROFILERS
6162        &&  _failures == 0 )
6263    {
6364        printf (" PROFILER TEST PASSES\n " 
@@ -69,9 +70,7 @@ HRESULT MultiplyLoaded::ProfilerDetachSucceeded()
6970
7071HRESULT MultiplyLoaded::ExceptionThrown (ObjectID thrownObjectId)
7172{
72-     int  seen = _exceptionThrownSeenCount++;
73- 
74-     printf (" MultiplyLoaded::ExceptionThrown, number seen = %d\n " 
73+     printf (" MultiplyLoaded::ExceptionThrown, number seen = %d\n " 
7574
7675    thread detachThread ([&]()
7776        {
0 commit comments