mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
_stprintf-fix
svn path=/trunk/; revision=6756
This commit is contained in:
parent
17b9c8d455
commit
83c21d74b3
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue