Procházet zdrojové kódy

Fix #4406 `os2` to not close the std file handles but rather just free the memory for the `^File` data.

gingerBill před 10 měsíci
rodič
revize
aa36ae01cf
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      core/os/os2/file_windows.odin

+ 3 - 3
core/os/os2/file_windows.odin

@@ -50,9 +50,9 @@ init_std_files :: proc() {
 }
 @(fini)
 fini_std_files :: proc() {
-	close(stdin)
-	close(stdout)
-	close(stderr)
+	_destroy((^File_Impl)(stdin.impl))
+	_destroy((^File_Impl)(stdout.impl))
+	_destroy((^File_Impl)(stderr.impl))
 }