Browse Source

rtl/osheap: fixed a dumb reversed condition in osheap/SysAllocMem()

Karoly Balogh 4 năm trước cách đây
mục cha
commit
c298c0e0da
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      rtl/inc/osheap.inc

+ 1 - 1
rtl/inc/osheap.inc

@@ -79,7 +79,7 @@
     function SysAllocMem(size: ptruint): pointer;
       begin
         result := SysGetMem(size);
-        if not assigned(result) then
+        if assigned(result) then
           FillChar(result^,SysMemSize(result),0);
       end;