From 2dd2c5e5b5e5c9f12717db6478bf59f380936976 Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Sat, 28 Apr 2007 21:23:44 +0000 Subject: [PATCH] Undo r26555 change as suggested by Aleksey & Thomas. svn path=/trunk/; revision=26563 --- reactos/base/applications/taskmgr/graph.c | 6 +++--- reactos/base/applications/taskmgr/taskmgr.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/base/applications/taskmgr/graph.c b/reactos/base/applications/taskmgr/graph.c index d72c94e8336..6ab48d5ce49 100644 --- a/reactos/base/applications/taskmgr/graph.c +++ b/reactos/base/applications/taskmgr/graph.c @@ -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 */ diff --git a/reactos/base/applications/taskmgr/taskmgr.c b/reactos/base/applications/taskmgr/taskmgr.c index bd34d3f7c5b..25d9de28355 100644 --- a/reactos/base/applications/taskmgr/taskmgr.c +++ b/reactos/base/applications/taskmgr/taskmgr.c @@ -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);