mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-06-26 16:33:36 +00:00
fix a fopen bug: rb should be w
This commit is contained in:
parent
99024dc20b
commit
3cd66ee850
@ -1602,7 +1602,7 @@ int XMLDocument::SaveFile( const char* filename, bool compact )
|
||||
errno_t err = fopen_s(&fp, filename, "w" );
|
||||
if ( !fp || err) {
|
||||
#else
|
||||
fp = fopen( filename, "rb" );
|
||||
fp = fopen( filename, "w" );
|
||||
if ( !fp) {
|
||||
#endif
|
||||
SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, filename, 0 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user