Savestates: Fixup file write
This commit is contained in:
+7
-4
@@ -2479,10 +2479,13 @@ bool fs::pending_file::commit(bool overwrite)
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
// Disable auto-delete
|
||||
FILE_DISPOSITION_INFO disp;
|
||||
disp.DeleteFileW = false;
|
||||
SetFileInformationByHandle(file.get_handle(), FileDispositionInfo, &disp, sizeof(disp));
|
||||
if (file)
|
||||
{
|
||||
// Disable auto-delete
|
||||
FILE_DISPOSITION_INFO disp;
|
||||
disp.DeleteFileW = false;
|
||||
ensure(SetFileInformationByHandle(file.get_handle(), FileDispositionInfo, &disp, sizeof(disp)));
|
||||
}
|
||||
#endif
|
||||
|
||||
file.close();
|
||||
|
||||
Reference in New Issue
Block a user