summaryrefslogtreecommitdiff
path: root/Source/Kernel/Linker/MelonBinary.class.cpp
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-11-24 14:29:29 +0100
committerAlexis211 <alexis211@gmail.com>2009-11-24 14:29:29 +0100
commitf3ffe96d679742af95afa29e0cf612c6935eedd0 (patch)
tree94b401da87240ab83216a6a147ff99df6aef8d5d /Source/Kernel/Linker/MelonBinary.class.cpp
parent0f536540de15202d44cd9b1d708ee04edccb8c66 (diff)
downloadMelon-f3ffe96d679742af95afa29e0cf612c6935eedd0.tar.gz
Melon-f3ffe96d679742af95afa29e0cf612c6935eedd0.zip
Reading from floppys supposedly fixed in qemu
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);