1
0
Fork 0

undocumented feature with resize returning segment in AX

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1394
This commit is contained in:
Sjoerd van der Berg 2003-11-01 16:03:42 +00:00
parent cf9a3a8931
commit 9c3002204e

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: dos.cpp,v 1.59 2003-10-26 18:57:46 harekiet Exp $ */
/* $Id: dos.cpp,v 1.60 2003-11-01 16:03:42 harekiet Exp $ */
#include <stdio.h>
#include <stdlib.h>
@ -599,6 +599,7 @@ static Bitu DOS_21Handler(void) {
{
Bit16u size=reg_bx;
if (DOS_ResizeMemory(SegValue(es),&size)) {
reg_ax=SegValue(es);
CALLBACK_SCF(false);
} else {
reg_ax=dos.errorcode;