Undo r26555 change as suggested by Aleksey & Thomas.

svn path=/trunk/; revision=26563
This commit is contained in:
Dmitry Gorbachev 2007-04-28 21:23:44 +00:00
parent 50ff73801f
commit 2dd2c5e5b5
2 changed files with 4 additions and 4 deletions

View file

@ -165,7 +165,7 @@ void Graph_DrawCpuUsageGraph(HDC hDC, HWND hWnd)
if (CpuUsage <= 0) CpuUsage = 0;
if (CpuUsage > 100) CpuUsage = 100;
wsprintf(Text, _T("%d%%"), (int)CpuUsage);
_stprintf(Text, _T("%d%%"), (int)CpuUsage);
/*
* Draw the font text onto the graph
@ -329,9 +329,9 @@ void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK();
if (CommitChargeTotal > 1024)
wsprintf(Text, _T("%d MB"), (int)(CommitChargeTotal / 1024));
_stprintf(Text, _T("%d MB"), (int)(CommitChargeTotal / 1024));
else
wsprintf(Text, _T("%d K"), (int)CommitChargeTotal);
_stprintf(Text, _T("%d K"), (int)CommitChargeTotal);
/*
* Draw the font text onto the graph
*/

View file

@ -1067,7 +1067,7 @@ LPTSTR GetLastErrorText(LPTSTR lpszBuf, DWORD dwSize)
lpszBuf[0] = TEXT('\0');
} else {
lpszTemp[lstrlen(lpszTemp)-2] = TEXT('\0'); /*remove cr and newline character */
wsprintf(lpszBuf, TEXT("%s (0x%x)"), lpszTemp, (int)GetLastError());
_stprintf(lpszBuf, TEXT("%s (0x%x)"), lpszTemp, (int)GetLastError());
}
if (lpszTemp) {
LocalFree((HLOCAL)lpszTemp);