diff options
author | Alexis211 <alexis211@gmail.com> | 2009-11-24 14:29:29 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-11-24 14:29:29 +0100 |
commit | f3ffe96d679742af95afa29e0cf612c6935eedd0 (patch) | |
tree | 94b401da87240ab83216a6a147ff99df6aef8d5d /Source/Kernel/Linker/MelonBinary.class.cpp | |
parent | 0f536540de15202d44cd9b1d708ee04edccb8c66 (diff) | |
download | Melon-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.cpp | 2 |
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); |