aboutsummaryrefslogtreecommitdiff
path: root/Source/LoadMenu.h
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2018-11-23 14:44:21 +0100
committerXavier ASUS <xavi92psx@gmail.com>2018-11-23 14:44:21 +0100
commitca6e4a13aa1b0d696b375fbd1ad43933174d34b9 (patch)
tree62f1fdd641c614e9bb1ac05d7a8efad17fcb6a30 /Source/LoadMenu.h
parent3b80f74ce10cfd7e55199dcb9a8c4b80598227d2 (diff)
downloadairport-ca6e4a13aa1b0d696b375fbd1ad43933174d34b9.tar.gz
Fixed critical bug that provoked an accidental access to a NULL pointer.
Diffstat (limited to 'Source/LoadMenu.h')
-rw-r--r--Source/LoadMenu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/LoadMenu.h b/Source/LoadMenu.h
index c87f5d4..218059d 100644
--- a/Source/LoadMenu.h
+++ b/Source/LoadMenu.h
@@ -11,6 +11,9 @@
* Defines
* *************************************/
+#define LOAD_FILES(x, y) \
+ LoadMenu(x, y, sizeof (x) / sizeof(x[0]), sizeof (y) / sizeof(y[0]))
+
/* *************************************
* Global prototypes
* *************************************/