We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b63e9be commit 6db95cfCopy full SHA for 6db95cf
Tools/WinMLRunner/src/EventTraceHelper.cpp
@@ -500,6 +500,9 @@ void EventTraceHelper::Start()
500
{
501
return;
502
}
503
+
504
+ // Please refer to this link to understand why buffersize was setup in such a seemingly random manner:
505
+ // https://docs.microsoft.com/en-us/windows/win32/api/evntrace/ns-evntrace-event_trace_propertiesbuffersize
506
int bufferSize = sizeof(EVENT_TRACE_PROPERTIES) + (sizeof(LOGSESSION_NAME) + 1) * sizeof(wchar_t);
507
m_sessionProperties = static_cast<PEVENT_TRACE_PROPERTIES>(malloc(bufferSize));
508
ZeroMemory(m_sessionProperties, bufferSize);
0 commit comments