]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_mm.c
wwww
[16.git] / src / lib / 16_mm.c
index cfbb3d451f0d24cb37fafe8c4381c3e0e2771cee..9dbc0eef1ff3be4e25b975607b86cc36571d4543 100644 (file)
@@ -507,6 +507,7 @@ void MM_Startup (void)
 // get all available near conventional memory segments\r
 //\r
 //---- length=coreleft();\r
+       _nheapgrow();\r
        length=_memavl();\r
        start = (void far *)(nearheap = malloc(length));\r
 \r
@@ -521,7 +522,8 @@ void MM_Startup (void)
 // get all available far conventional memory segments\r
 //\r
 //---- length=farcoreleft();\r
-       length=_memmax();\r
+       _fheapgrow();\r
+       length=_memavl();\r
        start = farheap = _fmalloc(length);\r
        length -= 16-(FP_OFF(start)&15);\r
        length -= SAVEFARHEAP;\r