From 83c21d74b3ec8328b93fce132bcbb5ea6a426d0f Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 23 Nov 2003 03:10:14 +0000 Subject: [PATCH] _stprintf-fix svn path=/trunk/; revision=6756 --- reactos/subsys/system/explorer/utility/shellclasses.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/system/explorer/utility/shellclasses.cpp b/reactos/subsys/system/explorer/utility/shellclasses.cpp index 88152839ec3..e09cd6850aa 100644 --- a/reactos/subsys/system/explorer/utility/shellclasses.cpp +++ b/reactos/subsys/system/explorer/utility/shellclasses.cpp @@ -73,7 +73,7 @@ void HandleException(COMException& e, HWND hwnd) TCHAR msg[4*BUFFER_LEN]; LPTSTR p = msg; - p += _stprintf(TEXT("%s"), e.ErrorMessage()); + p += _stprintf(p, TEXT("%s"), e.ErrorMessage()); if (e._ctx) p += _stprintf(p, TEXT("\nContext: %s"), e._ctx); @@ -85,7 +85,7 @@ void HandleException(COMException& e, HWND hwnd) #ifdef UNICODE p += _stprintf(p, TEXT("\nLocation: %hs(%d)"), e._file, e._line); #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 SetLastError(0);