| 2201 | } |
| 2202 | |
| 2203 | static FILE* callfopen( const char* filepath, const char* mode ) |
| 2204 | { |
| 2205 | TIXMLASSERT( filepath ); |
| 2206 | TIXMLASSERT( mode ); |
| 2207 | #if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE) |
| 2208 | FILE* fp = 0; |
| 2209 | const errno_t err = fopen_s( &fp, filepath, mode ); |
| 2210 | if ( err ) { |
| 2211 | return 0; |
| 2212 | } |
| 2213 | #else |
| 2214 | FILE* fp = fopen( filepath, mode ); |
| 2215 | #endif |
| 2216 | return fp; |
| 2217 | } |
| 2218 | |
| 2219 | void XMLDocument::DeleteNode( XMLNode* node ) { |
| 2220 | TIXMLASSERT( node ); |