mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Undo r26555 change as suggested by Aleksey & Thomas.
svn path=/trunk/; revision=26563
This commit is contained in:
parent
50ff73801f
commit
2dd2c5e5b5
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue