summaryrefslogtreecommitdiff
path: root/emulators/x49gp/files/patch-main.c
blob: f39256817c4a9a7fcf18da0588c25355cbc9424e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- main.c.orig	2014-01-09 17:47:52.000000000 +0000
+++ main.c	2014-01-09 17:47:38.000000000 +0000
@@ -25,6 +25,14 @@
 
 #include "gdbstub.h"
 
+static void *oom_check(void *ptr)
+{
+    if (ptr == NULL) {
+        abort();
+    }
+    return ptr;
+}
+
 static x49gp_t *x49gp;
 
 #ifdef QEMU_OLD // LD TEMPO HACK