Parcourir la source

* fixed ReturnNilIfGrowHeapFails

git-svn-id: trunk@5042 -
Jonas Maebe il y a 19 ans
Parent
commit
64b7f00afd
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  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;