Index: src/rc2lng/rc.cpp =================================================================== diff -u -N -r2ea239cf20965118cf7bca9a48c2cec670be5738 -ref66618c03735e362f78ddd3822a3f5c40efa366 --- src/rc2lng/rc.cpp (.../rc.cpp) (revision 2ea239cf20965118cf7bca9a48c2cec670be5738) +++ src/rc2lng/rc.cpp (.../rc.cpp) (revision ef66618c03735e362f78ddd3822a3f5c40efa366) @@ -525,7 +525,7 @@ CString strLine = *it; strLine.Trim(); - if ( (iPos=strLine.Find(_T(" MENU"))) == (strLine.GetLength() - (int)_tcslen(_T(" MENU"))) ) + if ( (iPos=strLine.Find(_T(" MENU"))) >= 0 && iPos == (strLine.GetLength() - (int)_tcslen(_T(" MENU"))) ) { // add the line to the output rc with no change m_vOutRCFile.push_back(*it); @@ -548,7 +548,7 @@ it++; ProcessDialog(uiID, &it); } - else if ( (iPos=strLine.Find(_T("STRINGTABLE"))) == (strLine.GetLength() - (int)_tcslen(_T("STRINGTABLE")))) + else if ( (iPos=strLine.Find(_T("STRINGTABLE"))) >= 0 && iPos == (strLine.GetLength() - (int)_tcslen(_T("STRINGTABLE")))) { // begin of the string table it++;