Merge pull request #712 from cxd4/undeclared-sprintf
[RSP] Added missing <stdio.h> include to fix undeclared sprintf().
This commit is contained in:
commit
d15a244ed2
|
@ -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)
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
* should be forwarded to them so if they want them.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <windows.h>
|
||||
#include <Common/std string.h>
|
||||
#include <Common/File Class.h>
|
||||
|
@ -208,7 +210,6 @@ void RDP_LogLoc ( DWORD /*PC*/ )
|
|||
#ifdef old
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include "RSP Registers.h"
|
||||
#include "log.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue