From aeadeace0fea6525fa2c884ffa7a1da2fd36e6c7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 9 Jan 2026 01:06:32 +0100 Subject: [PATCH] Check for both versions of Program Files in external paths. --- profiler/src/profiler/TracyUtility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyUtility.cpp b/profiler/src/profiler/TracyUtility.cpp index f02ae968..4841337b 100644 --- a/profiler/src/profiler/TracyUtility.cpp +++ b/profiler/src/profiler/TracyUtility.cpp @@ -216,7 +216,7 @@ std::vector SplitLines( const char* data, size_t sz ) bool IsFrameExternal( const char* filename, const char* image ) { if( strncmp( filename, "/usr/", 5 ) == 0 || strncmp( filename, "/lib/", 5 ) == 0 || strcmp( filename, "[unknown]" ) == 0 || strcmp( filename, "" ) == 0 ) return true; - if( strncmp( filename, "C:\\Program Files\\", 17 ) == 0 || strncmp( filename, "d:\\a01\\_work\\", 13 ) == 0 ) return true; + if( strncmp( filename, "C:\\Program Files", 16 ) == 0 || strncmp( filename, "d:\\a01\\_work\\", 13 ) == 0 ) return true; if( !image ) return false; return strncmp( image, "/usr/", 5 ) == 0 || strncmp( image, "/lib/", 5 ) == 0 || strncmp( image, "/lib64/", 7 ) == 0 || strcmp( image, "" ) == 0; }