fixed mistake in the DJGPP version of dpmi_alloc
authorJohn Tsiombikas <nuclear@member.fsf.org>
Tue, 6 Feb 2018 22:56:32 +0000 (00:56 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Tue, 6 Feb 2018 22:56:32 +0000 (00:56 +0200)
src/dos/djdpmi.c

index 69e7b56..f3a06b9 100644 (file)
@@ -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;
        int tmp;
        uint16_t seg = __dpmi_allocate_dos_memory(par, &tmp);
        *sel = tmp;
-       return tmp;
+       return seg;
 }
 
 void dpmi_free(uint16_t sel)
 }
 
 void dpmi_free(uint16_t sel)