[ros-diffs] [dgorbachev] 26563: Undo r26555 change as suggested by Aleksey & Thomas.

dgorbachev at svn.reactos.org dgorbachev at svn.reactos.org
Sat Apr 28 23:23:45 CEST 2007


Author: dgorbachev
Date: Sun Apr 29 01:23:44 2007
New Revision: 26563

URL: http://svn.reactos.org/svn/reactos?rev=26563&view=rev
Log:
Undo r26555 change as suggested by Aleksey & Thomas.

Modified:
    trunk/reactos/base/applications/taskmgr/graph.c
    trunk/reactos/base/applications/taskmgr/taskmgr.c

Modified: trunk/reactos/base/applications/taskmgr/graph.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/graph.c?rev=26563&r1=26562&r2=26563&view=diff
==============================================================================
--- trunk/reactos/base/applications/taskmgr/graph.c (original)
+++ trunk/reactos/base/applications/taskmgr/graph.c Sun Apr 29 01:23:44 2007
@@ -165,7 +165,7 @@
     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 @@
     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
      */

Modified: trunk/reactos/base/applications/taskmgr/taskmgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/taskmgr.c?rev=26563&r1=26562&r2=26563&view=diff
==============================================================================
--- trunk/reactos/base/applications/taskmgr/taskmgr.c (original)
+++ trunk/reactos/base/applications/taskmgr/taskmgr.c Sun Apr 29 01:23:44 2007
@@ -1067,7 +1067,7 @@
         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);




More information about the Ros-diffs mailing list