--- a/imgtools/romtools/rombuild/rombuild.cpp Tue Nov 30 13:59:58 2010 +0800
+++ b/imgtools/romtools/rombuild/rombuild.cpp Tue Nov 30 14:05:41 2010 +0800
@@ -34,7 +34,7 @@
static const TInt RombuildMajorVersion=2;
static const TInt RombuildMinorVersion=19;
-static const TInt RombuildPatchVersion=1;
+static const TInt RombuildPatchVersion=3;
static TBool SizeSummary=EFalse;
static TPrintType SizeWhere=EAlways;
static string compareROMName = "";
@@ -490,7 +490,7 @@
}
return 0;
}
- if (romlogfile[romlogfile.size()-1] == '\\' || romlogfile[romlogfile.size()-1] == '/')
+ if (romlogfile.empty() || romlogfile[romlogfile.size()-1] == '\\' || romlogfile[romlogfile.size()-1] == '/')
romlogfile += "ROMBUILD.LOG";
H.SetLogFile(romlogfile.c_str());
ObeyFileReader *reader=new ObeyFileReader(filename.c_str());