From 19e83b434e65fa180556d277a6206a368dc059f7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 23 Jun 2018 00:27:14 +0200 Subject: [PATCH] Increase max length of symbol on windows. --- client/TracyCallstack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/TracyCallstack.cpp b/client/TracyCallstack.cpp index 5a8d433e..5b026a2f 100644 --- a/client/TracyCallstack.cpp +++ b/client/TracyCallstack.cpp @@ -27,10 +27,10 @@ CallstackEntry DecodeCallstackPtr( uint64_t ptr ) const auto proc = GetCurrentProcess(); - char buf[sizeof( SYMBOL_INFO ) + 255]; + char buf[sizeof( SYMBOL_INFO ) + 1024]; auto si = (SYMBOL_INFO*)buf; si->SizeOfStruct = sizeof( SYMBOL_INFO ); - si->MaxNameLen = 255; + si->MaxNameLen = 1024; if( SymFromAddr( proc, ptr, nullptr, si ) == 0 ) {