Simplified if-tree in extended_trace.cpp
This commit is contained in:
parent
0ccd026a6d
commit
a7c549a40c
|
@ -175,17 +175,13 @@ static BOOL GetFunctionInfoFromAddresses( ULONG fnAddress, ULONG stackAddress, L
|
||||||
// I am just smarter than the symbol file :)
|
// I am just smarter than the symbol file :)
|
||||||
if (_tcscmp(lpszUnDSymbol, _T("_WinMain@16")) == 0)
|
if (_tcscmp(lpszUnDSymbol, _T("_WinMain@16")) == 0)
|
||||||
_tcscpy(lpszUnDSymbol, _T("WinMain(HINSTANCE,HINSTANCE,LPCTSTR,int)"));
|
_tcscpy(lpszUnDSymbol, _T("WinMain(HINSTANCE,HINSTANCE,LPCTSTR,int)"));
|
||||||
else
|
else if (_tcscmp(lpszUnDSymbol, _T("_main")) == 0)
|
||||||
if ( _tcscmp(lpszUnDSymbol, _T("_main")) == 0 )
|
|
||||||
_tcscpy(lpszUnDSymbol, _T("main(int,TCHAR * *)"));
|
_tcscpy(lpszUnDSymbol, _T("main(int,TCHAR * *)"));
|
||||||
else
|
else if (_tcscmp(lpszUnDSymbol, _T("_mainCRTStartup")) == 0)
|
||||||
if ( _tcscmp(lpszUnDSymbol, _T("_mainCRTStartup")) == 0 )
|
|
||||||
_tcscpy(lpszUnDSymbol, _T("mainCRTStartup()"));
|
_tcscpy(lpszUnDSymbol, _T("mainCRTStartup()"));
|
||||||
else
|
else if (_tcscmp(lpszUnDSymbol, _T("_wmain")) == 0)
|
||||||
if ( _tcscmp(lpszUnDSymbol, _T("_wmain")) == 0 )
|
|
||||||
_tcscpy(lpszUnDSymbol, _T("wmain(int,TCHAR * *,TCHAR * *)"));
|
_tcscpy(lpszUnDSymbol, _T("wmain(int,TCHAR * *,TCHAR * *)"));
|
||||||
else
|
else if (_tcscmp(lpszUnDSymbol, _T("_wmainCRTStartup")) == 0)
|
||||||
if ( _tcscmp(lpszUnDSymbol, _T("_wmainCRTStartup")) == 0 )
|
|
||||||
_tcscpy(lpszUnDSymbol, _T("wmainCRTStartup()"));
|
_tcscpy(lpszUnDSymbol, _T("wmainCRTStartup()"));
|
||||||
|
|
||||||
lpszSymbol[0] = _T('\0');
|
lpszSymbol[0] = _T('\0');
|
||||||
|
|
Loading…
Reference in New Issue