From c9a3eeccc46a19a4ab5e8b13839dfec9d05ea1d6 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Wed, 7 Feb 2018 00:56:32 +0200 Subject: [PATCH] fixed mistake in the DJGPP version of dpmi_alloc --- src/dos/djdpmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dos/djdpmi.c b/src/dos/djdpmi.c index 69e7b56..f3a06b9 100644 --- a/src/dos/djdpmi.c +++ b/src/dos/djdpmi.c @@ -9,7 +9,7 @@ uint16_t dpmi_alloc(unsigned int par, uint16_t *sel) int tmp; uint16_t seg = __dpmi_allocate_dos_memory(par, &tmp); *sel = tmp; - return tmp; + return seg; } void dpmi_free(uint16_t sel) -- 1.7.10.4