mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Check return value of EnableTraceEx2().
This commit is contained in:
parent
993c631103
commit
063ad1f1d3
@ -301,7 +301,11 @@ static void SetupVsync()
|
|||||||
params.FilterDescCount = 1;
|
params.FilterDescCount = 1;
|
||||||
|
|
||||||
uint64_t mask = 0x4000000000000001; // Microsoft_Windows_DxgKrnl_Performance | Base
|
uint64_t mask = 0x4000000000000001; // Microsoft_Windows_DxgKrnl_Performance | Base
|
||||||
EnableTraceEx2( s_traceHandleVsync, &DxgKrnlGuid, EVENT_CONTROL_CODE_ENABLE_PROVIDER, TRACE_LEVEL_INFORMATION, mask, mask, 0, ¶ms );
|
if( EnableTraceEx2( s_traceHandleVsync, &DxgKrnlGuid, EVENT_CONTROL_CODE_ENABLE_PROVIDER, TRACE_LEVEL_INFORMATION, mask, mask, 0, ¶ms ) != ERROR_SUCCESS )
|
||||||
|
{
|
||||||
|
tracy_free( s_propVsync );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
char loggerName[MAX_PATH];
|
char loggerName[MAX_PATH];
|
||||||
strcpy( loggerName, "TracyVsync" );
|
strcpy( loggerName, "TracyVsync" );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user