Fixed an issue with getting event size not working for custom notification event
authorCagri Aslan <cagriaslan@Andrews-Mac-mini.local>
Sat, 17 Oct 2015 00:43:39 +0000 (17:43 -0700)
committerCagri <caslan@microsoft.com>
Thu, 22 Oct 2015 07:12:39 +0000 (00:12 -0700)
src/debug/shared/dbgtransportsession.cpp

index 664fe6f..83335d1 100644 (file)
@@ -2403,7 +2403,11 @@ DWORD DbgTransportSession::GetEventSize(DebuggerIPCEvent *pEvent)
     case DB_IPCE_GET_GCHANDLE_INFO:
         cbAdditionalSize = sizeof(pEvent->GetGCHandleInfo);
         break;
-
+    
+    case DB_IPCE_CUSTOM_NOTIFICATION:
+        cbAdditionalSize = sizeof(pEvent->CustomNotification);
+        break;
+            
     default:
         printf("Unknown debugger event type: 0x%x\n", (pEvent->type & DB_IPCE_TYPE_MASK));
         _ASSERTE(!"Unknown debugger event type");