More code review feedback
authorAndrew Au <andrewau@microsoft.com>
Mon, 13 Aug 2018 18:14:18 +0000 (11:14 -0700)
committerAndrew Au <cshung@gmail.com>
Wed, 7 Nov 2018 02:34:47 +0000 (18:34 -0800)
src/debug/di/process.cpp

index c03332c..fffc6d9 100644 (file)
@@ -2570,7 +2570,13 @@ COM_METHOD CordbProcess::GetContainingObject(CORDB_ADDRESS interiorPointer, ICor
 
 COM_METHOD CordbProcess::EnableGCNotificationEvents(BOOL fEnable)
 {
-    return this->m_pDacPrimitives->EnableGCNotificationEvents(fEnable);
+    HRESULT hr = S_OK;
+    PUBLIC_API_BEGIN(this)
+    {
+        hr = this->m_pDacPrimitives->EnableGCNotificationEvents(fEnable);
+    }
+    PUBLIC_API_END(hr);
+    return hr;
 }
 
 #ifdef FEATURE_LEGACYNETCF_DBG_HOST_CONTROL