From: John Tsiombikas Date: Tue, 6 Feb 2018 22:56:32 +0000 (+0200) Subject: fixed mistake in the DJGPP version of dpmi_alloc X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=commitdiff_plain;h=c9a3eeccc46a19a4ab5e8b13839dfec9d05ea1d6 fixed mistake in the DJGPP version of dpmi_alloc --- 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)