mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 09:00:17 +02:00
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:
1 parent
ce27754b9d
commit
5e5e9e0803
1 file changed
+2
@@ -58,6 +58,8 @@ public:
|
||||
}
|
||||
IsValidHandle = Handle != INVALID_HANDLE_VALUE;
|
||||
#endif
|
||||
|
||||
ShouldClose = IsValidHandle;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user