Browse Source

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

ccrause 1 year ago
parent
commit
5930ffa135
2 changed files with 4 additions and 0 deletions
  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 }
 { close a file from the handle value }
 procedure do_close(handle : longint);
 procedure do_close(handle : longint);
 begin
 begin
+  if assigned (@rtl_do_close) then
+    rtl_do_close(handle);
 end;
 end;
 
 
 
 

+ 2 - 0
rtl/freertos/sysfile.inc

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