imgtools/romtools/rombuild/rombuild.cpp
changeset 713 7b7f0409fc00
parent 712 df89378e9223
parent 710 44ac166bbdbc
child 714 e5a58c351011
--- 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());