2
0
Эх сурвалжийг харах

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

ccrause 2 жил өмнө
parent
commit
5930ffa135

+ 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;