Include <stdio.h> to fix one undeclared sprintf().
This commit is contained in:
parent
abb5578dbb
commit
6a3fe2bfb6
|
@ -24,6 +24,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -168,8 +169,9 @@ public:
|
||||||
{
|
{
|
||||||
char Buffer[255];
|
char Buffer[255];
|
||||||
float CpuUsage = (float)(((double)ItemList[count]->second / (double)TotalTime) * 100);
|
float CpuUsage = (float)(((double)ItemList[count]->second / (double)TotalTime) * 100);
|
||||||
|
|
||||||
if (CpuUsage <= 0.2) { continue; }
|
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++)
|
for (int NameID = 0; NameID < (sizeof(TimerNames) / sizeof(TIMER_NAME)); NameID++)
|
||||||
{
|
{
|
||||||
if (ItemList[count]->first == (DWORD)TimerNames[NameID].Timer)
|
if (ItemList[count]->first == (DWORD)TimerNames[NameID].Timer)
|
||||||
|
|
Loading…
Reference in New Issue