This commit is contained in:
twinaphex
2021-06-06 01:57:41 +02:00
parent 84bb7c4e9d
commit 8331b3c425
2 changed files with 3 additions and 5 deletions

View File

@@ -28,8 +28,7 @@
void *FCEU_gmalloc(uint32 size) void *FCEU_gmalloc(uint32 size)
{ {
void *ret; void *ret = malloc(size);
ret = malloc(size);
if (!ret) if (!ret)
{ {
FCEU_PrintError("Error allocating memory! Doing a hard exit."); FCEU_PrintError("Error allocating memory! Doing a hard exit.");
@@ -41,8 +40,7 @@ void *FCEU_gmalloc(uint32 size)
void *FCEU_malloc(uint32 size) void *FCEU_malloc(uint32 size)
{ {
void *ret; void *ret = (void*)malloc(size);
ret = (void*)malloc(size);
if (!ret) if (!ret)
{ {

View File

@@ -6,7 +6,7 @@ void FCEUPPU_Reset(void);
void FCEUPPU_Power(void); void FCEUPPU_Power(void);
int FCEUPPU_Loop(int skip); int FCEUPPU_Loop(int skip);
void FCEUPPU_LineUpdate(); void FCEUPPU_LineUpdate(void);
void FCEUPPU_SetVideoSystem(int w); void FCEUPPU_SetVideoSystem(int w);
extern void (*GameHBIRQHook)(void), (*GameHBIRQHook2)(void); extern void (*GameHBIRQHook)(void), (*GameHBIRQHook2)(void);