Include <stdio.h> to fix one undeclared sprintf().

This commit is contained in:
unknown 2015-10-29 19:42:39 -04:00
parent abb5578dbb
commit 6a3fe2bfb6
1 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@
*
*/
#include <stdio.h>
#include <windows.h>
#include <shellapi.h>
extern "C" {
@ -168,8 +169,9 @@ public:
{
char Buffer[255];
float CpuUsage = (float)(((double)ItemList[count]->second / (double)TotalTime) * 100);
if (CpuUsage <= 0.2) { continue; }
sprintf(Buffer,"Func 0x%08X",ItemList[count]->first);
sprintf(Buffer, "Func 0x%08X", ItemList[count]->first);
for (int NameID = 0; NameID < (sizeof(TimerNames) / sizeof(TIMER_NAME)); NameID++)
{
if (ItemList[count]->first == (DWORD)TimerNames[NameID].Timer)