diff --git a/client/TracyCallstack.cpp b/client/TracyCallstack.cpp index 592f8b1c..26211aec 100644 --- a/client/TracyCallstack.cpp +++ b/client/TracyCallstack.cpp @@ -19,7 +19,11 @@ extern "C" t_RtlWalkFrameChain RtlWalkFrameChain = 0; void InitCallstack() { +#ifdef UNICODE + RtlWalkFrameChain = (t_RtlWalkFrameChain)GetProcAddress( GetModuleHandle( L"ntdll.dll" ), "RtlWalkFrameChain" ); +#else RtlWalkFrameChain = (t_RtlWalkFrameChain)GetProcAddress( GetModuleHandle( "ntdll.dll" ), "RtlWalkFrameChain" ); +#endif SymInitialize( GetCurrentProcess(), nullptr, true ); SymSetOptions( SYMOPT_LOAD_LINES ); }