diff options
Diffstat (limited to 'test1.cpp')
-rw-r--r-- | test1.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -128,10 +128,10 @@ bool TestStreams() // load the file try { - std::ifstream infile; - infile.open(rgszTestFile[0], std::ifstream::in | std::ifstream::binary); - if (ini.Load(infile) < 0) throw false; - infile.close(); + std::ifstream instream; + instream.open(rgszTestFile[0], std::ifstream::in | std::ifstream::binary); + if (ini.LoadData(instream) < 0) throw false; + instream.close(); } catch (...) { return oTest.Failure("Failed to load file"); |