| 1930 | } |
| 1931 | |
| 1932 | static FILE* callfopen( const char* filepath, const char* mode ) |
| 1933 | { |
| 1934 | TIXMLASSERT( filepath ); |
| 1935 | TIXMLASSERT( mode ); |
| 1936 | #if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE) |
| 1937 | FILE* fp = 0; |
| 1938 | errno_t err = fopen_s( &fp, filepath, mode ); |
| 1939 | if ( err ) { |
| 1940 | return 0; |
| 1941 | } |
| 1942 | #else |
| 1943 | FILE* fp = fopen( filepath, mode ); |
| 1944 | #endif |
| 1945 | return fp; |
| 1946 | } |
| 1947 | |
| 1948 | void XMLDocument::DeleteNode( XMLNode* node ) { |
| 1949 | TIXMLASSERT( node ); |