_stprintf-fix

svn path=/trunk/; revision=6756
This commit is contained in:
Martin Fuchs 2003-11-23 03:10:14 +00:00
parent 17b9c8d455
commit 83c21d74b3

View file

@ -73,7 +73,7 @@ void HandleException(COMException& e, HWND hwnd)
TCHAR msg[4*BUFFER_LEN]; TCHAR msg[4*BUFFER_LEN];
LPTSTR p = msg; LPTSTR p = msg;
p += _stprintf(TEXT("%s"), e.ErrorMessage()); p += _stprintf(p, TEXT("%s"), e.ErrorMessage());
if (e._ctx) if (e._ctx)
p += _stprintf(p, TEXT("\nContext: %s"), e._ctx); p += _stprintf(p, TEXT("\nContext: %s"), e._ctx);
@ -85,7 +85,7 @@ void HandleException(COMException& e, HWND hwnd)
#ifdef UNICODE #ifdef UNICODE
p += _stprintf(p, TEXT("\nLocation: %hs(%d)"), e._file, e._line); p += _stprintf(p, TEXT("\nLocation: %hs(%d)"), e._file, e._line);
#else #else
p += _stprintf(p, TEXT("\nLocation: %s(%d)"), e._file, e._line); p += _stprintf(p, TEXT("\nLocation: %s, line %d"), e._file, e._line);
#endif #endif
SetLastError(0); SetLastError(0);