Don't use EVENT_FILTER_EVENT_ID, etc with SDK < Win 8.1.

This commit is contained in:
Bartosz Taudul 2020-09-06 14:02:18 +02:00
parent 9e51e3fa85
commit 4dae36cb73

View File

@ -248,6 +248,7 @@ void WINAPI EventRecordCallbackVsync( PEVENT_RECORD record )
static void SetupVsync()
{
#if _WIN32_WINNT >= _WIN32_WINNT_WINBLUE
const auto psz = sizeof( EVENT_TRACE_PROPERTIES ) + MAX_PATH;
s_propVsync = (EVENT_TRACE_PROPERTIES*)tracy_malloc( psz );
memset( s_propVsync, 0, sizeof( EVENT_TRACE_PROPERTIES ) );
@ -325,6 +326,7 @@ static void SetupVsync()
SetThreadName( "Tracy Vsync" );
ProcessTrace( &s_traceHandleVsync2, 1, nullptr, nullptr );
}, nullptr );
#endif
}
bool SysTraceStart( int64_t& samplingPeriod )