Get rid of unicode ifdefs.

This commit is contained in:
Bartosz Taudul
2020-04-07 21:35:37 +02:00
parent 69c5e667ae
commit 8d9a611874
3 changed files with 11 additions and 35 deletions

View File

@@ -86,11 +86,8 @@ static FastVector<ModuleCache>* s_modCache;
void InitCallstack()
{
#ifdef UNICODE
RtlWalkFrameChain = (t_RtlWalkFrameChain)GetProcAddress( GetModuleHandle( L"ntdll.dll" ), "RtlWalkFrameChain" );
#else
RtlWalkFrameChain = (t_RtlWalkFrameChain)GetProcAddress( GetModuleHandle( "ntdll.dll" ), "RtlWalkFrameChain" );
#endif
RtlWalkFrameChain = (t_RtlWalkFrameChain)GetProcAddress( GetModuleHandleA( "ntdll.dll" ), "RtlWalkFrameChain" );
SymInitialize( GetCurrentProcess(), nullptr, true );
SymSetOptions( SYMOPT_LOAD_LINES );