1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-03 14:03:52 +00:00

Increase max length of symbol on windows.

This commit is contained in:
Bartosz Taudul 2018-06-23 00:27:14 +02:00
parent f0ce7de193
commit 19e83b434e

View File

@ -27,10 +27,10 @@ CallstackEntry DecodeCallstackPtr( uint64_t ptr )
const auto proc = GetCurrentProcess(); const auto proc = GetCurrentProcess();
char buf[sizeof( SYMBOL_INFO ) + 255]; char buf[sizeof( SYMBOL_INFO ) + 1024];
auto si = (SYMBOL_INFO*)buf; auto si = (SYMBOL_INFO*)buf;
si->SizeOfStruct = sizeof( SYMBOL_INFO ); si->SizeOfStruct = sizeof( SYMBOL_INFO );
si->MaxNameLen = 255; si->MaxNameLen = 1024;
if( SymFromAddr( proc, ptr, nullptr, si ) == 0 ) if( SymFromAddr( proc, ptr, nullptr, si ) == 0 )
{ {