secureswitools/swisistools/source/rscparser/aplappinforeader.cpp
changeset 33 8110bf1194d1
parent 25 98b66e4fb0be
child 50 c6e8afe0ba85
--- a/secureswitools/swisistools/source/rscparser/aplappinforeader.cpp	Mon May 03 12:38:03 2010 +0300
+++ b/secureswitools/swisistools/source/rscparser/aplappinforeader.cpp	Fri May 14 15:58:48 2010 +0300
@@ -476,9 +476,11 @@
 				std::string Locale;
 				int iLocale = 0;
 		
-				found=fName.find_last_of(".");
-				if(found)
-				   	Locale = fName.substr(found+2);
+				found=fName.rfind(".r");
+				if(found!=string::npos)
+					Locale = fName.substr(found+2);
+				else
+					continue;
 
 				iLocale = atoi(Locale.c_str()); 
 			    if(!iLocale)