notepad-plus-plus/PowerEditor/src/TinyXml
Pavel Nedev a103151774
Fix NUL file-corruption bug after Windows shutdown brutally
Bypass Windows caching when flushing files after write.

According Microsoft documentation this fixes the issues with saved file corruption (all NULs)
on sudden power loss or restart.

Microsoft documentation for reference:
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-wfopen?view=vs-2019
https://docs.microsoft.com/en-us/cpp/c-runtime-library/stream-i-o?view=vs-2019

Fix #6133, close #8952
2020-10-06 15:55:41 +02:00
..
tinyXmlA Fix NUL file-corruption bug after Windows shutdown brutally 2020-10-06 15:55:41 +02:00
tinystr.cpp [EU-FOSSA] Replace lstrcat by wcscat_s to avoid crash 2019-02-22 12:57:58 +01:00
tinystr.h tinyxml: added missing include <cassert> 2015-07-06 00:37:00 +02:00
tinyxml.cpp Fix NUL file-corruption bug after Windows shutdown brutally 2020-10-06 15:55:41 +02:00
tinyxml.h Warning/error fixes as per VS2017 code analysis 2018-02-19 12:21:35 +01:00
tinyxmlerror.cpp Fix typos 2020-04-14 22:28:16 +02:00
tinyxmlparser.cpp Remove ugly coding style 2019-03-16 05:33:50 +01:00