Browse Source

Call rtl_do_close handler in sysfile.do_close, as reported by Kostas Michalopoulos

ccrause 1 năm trước cách đây
mục cha
commit
5930ffa135
2 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 2 0
      rtl/embedded/sysfile.inc
  2. 2 0
      rtl/freertos/sysfile.inc

+ 2 - 0
rtl/embedded/sysfile.inc

@@ -24,6 +24,8 @@
 { close a file from the handle value }
 procedure do_close(handle : longint);
 begin
+  if assigned (@rtl_do_close) then
+    rtl_do_close(handle);
 end;
 
 

+ 2 - 0
rtl/freertos/sysfile.inc

@@ -24,6 +24,8 @@
 { close a file from the handle value }
 procedure do_close(handle : longint);
 begin
+  if assigned (@rtl_do_close) then
+    rtl_do_close(handle);
 end;