Utils/File: Fix handle releasing

ShouldClose was never being set in the event we opened a regular file.
The only time it was set (to false) is when it's used to encapsulate
stderr and stdout.

So anything opened by a File instance was essentially held open.
This commit is contained in:
LC committed 2026-07-13 16:01:28 -04:00
1 parent ce27754b9d
commit 5e5e9e0803
1 file changed
+2
+2
View File
@@ -58,6 +58,8 @@ public:
}
IsValidHandle = Handle != INVALID_HANDLE_VALUE;
#endif
ShouldClose = IsValidHandle;
}
/**