Browse Source

* fixed ReturnNilIfGrowHeapFails

git-svn-id: trunk@5042 -
Jonas Maebe 19 years ago
parent
commit
64b7f00afd
1 changed files with 4 additions and 1 deletions
  1. 4 1
      rtl/inc/heap.inc

+ 4 - 1
rtl/inc/heap.inc

@@ -805,7 +805,10 @@ begin
         if poc=nil then
         if poc=nil then
           begin
           begin
             if ReturnNilIfGrowHeapFails then
             if ReturnNilIfGrowHeapFails then
-              exit
+              begin
+                result := nil;
+                exit
+              end
             else
             else
               HandleError(203);
               HandleError(203);
           end;
           end;