diff --git a/src/coreclr/debug/di/process.cpp b/src/coreclr/debug/di/process.cpp index 787c0f874af3b9..f5f03978a3f253 100644 --- a/src/coreclr/debug/di/process.cpp +++ b/src/coreclr/debug/di/process.cpp @@ -4926,8 +4926,7 @@ void CordbProcess::RawDispatchEvent( ULONG cchCategory = pEvent->FirstLogMessage.cchCategory; ULONG cchContent = pEvent->FirstLogMessage.cchContent; - const ULONG cchMax = 0x10000; - if (cchCategory > cchMax || cchContent > cchMax) + if (cchCategory > MAX_LOG_SWITCH_NAME_LEN) { IfFailThrow(E_UNEXPECTED); }