From: Robert Pengelly Date: Thu, 29 Oct 2026 12:11:30 +0000 (+0000) Subject: Fix memory corruption on failed DOS memory allocation X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=50411e3b08e9011bd12814ace404b43f985d6469;p=dosemu.git Fix memory corruption on failed DOS memory allocation --- diff --git a/interrupts.c b/interrupts.c index fefa7c8..5b9a1ee 100644 --- a/interrupts.c +++ b/interrupts.c @@ -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; }