Fix memory corruption on failed DOS memory allocation
authorRobert Pengelly <robertapengelly@hotmail.com>
Thu, 29 Oct 2026 12:11:30 +0000 (12:11 +0000)
committerRobert Pengelly <robertapengelly@hotmail.com>
Thu, 29 Oct 2026 12:11:30 +0000 (12:11 +0000)
interrupts.c

index fefa7c837513b2940488aa4c2719213c2bf34fb8..5b9a1ee0dc23058211169271e912f82fc52a6ec3 100644 (file)
@@ -2507,6 +2507,8 @@ static void dos_allocate_memory (CPU8086 *cpu, uint16_t requested, uint16_t owne
     
         dos_set_error (cpu, 0x0008);
         cpu->regs[REG_BX] = max_free;
+        
+        return;
     
     }