[GME-commit] GMESRC/GME/Core CoreBinFile.cpp,1.18,1.19
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Mon Jul 2 13:37:35 CDT 2007
Update of /project/gme-repository/GMESRC/GME/Core
In directory escher:/tmp/cvs-serv14059
Modified Files:
CoreBinFile.cpp
Log Message:
Fixing GME-155,GME-157: data corrupted/lost after trying to save the project using an invalid file path.
CVS User: Peter Volgyesi, ISIS (volgy)
Index: CoreBinFile.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Core/CoreBinFile.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** CoreBinFile.cpp 19 May 2006 17:12:52 -0000 1.18
--- CoreBinFile.cpp 2 Jul 2007 18:37:33 -0000 1.19
***************
*** 768,773 ****
ofs.open(filename.c_str(), std::ios::out | std::ios::binary);
! if( ofs.fail() || !ofs.is_open() )
HR_THROW(E_FILEOPEN);
write(metaprojectid);
--- 768,776 ----
ofs.open(filename.c_str(), std::ios::out | std::ios::binary);
! if( ofs.fail() || !ofs.is_open() ) {
! ofs.close();
! ofs.clear();
HR_THROW(E_FILEOPEN);
+ }
write(metaprojectid);
More information about the GME-commit
mailing list