summaryrefslogtreecommitdiff
path: root/Source/Kernel/Linker/MelonBinary.class.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/Linker/MelonBinary.class.cpp')
-rw-r--r--Source/Kernel/Linker/MelonBinary.class.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Kernel/Linker/MelonBinary.class.cpp b/Source/Kernel/Linker/MelonBinary.class.cpp
index 0737b71..8a85977 100644
--- a/Source/Kernel/Linker/MelonBinary.class.cpp
+++ b/Source/Kernel/Linker/MelonBinary.class.cpp
@@ -2,7 +2,7 @@
Binary* MelonBinary::load(File& file) {
u32int magic;
- file.read<u32int>(&magic);
+ if (!file.read<u32int>(&magic)) return 0;
if (magic == 0xFEEDBEEF) {
MelonBinary* r = new MelonBinary;
file.read<u32int>(&r->m_size);