Ver Fonte

* fixed ReturnNilIfGrowHeapFails

git-svn-id: trunk@5042 -
Jonas Maebe há 19 anos atrás
pai
commit
64b7f00afd
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      rtl/inc/heap.inc

+ 4 - 1
rtl/inc/heap.inc

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