|
@@ -3880,7 +3880,9 @@ void ResourceWatcherFSM::VerifySignature(const CSimpleStringA& filePath)
|
|
|
string strFileName = fileName;
|
|
|
string strFilePath;
|
|
|
|
|
|
- if (strFileName.find(".dll") == string::npos && strFileName.find(".exe") == string::npos)
|
|
|
+ if(strFileName.empty()
|
|
|
+ || (strFileName.rfind(".dll") != strFileName.length() - 4
|
|
|
+ && strFileName.rfind(".exe") != strFileName.length() - 4))
|
|
|
continue;
|
|
|
|
|
|
strFilePath = strDirPath;
|