AD: Allow mixed files path/no path in detection entries
This commit is contained in:
parent
00637f3c09
commit
9dae828a38
1 changed files with 5 additions and 1 deletions
|
@ -483,7 +483,11 @@ void AdvancedMetaEngineDetection::composeFileHashMap(FileMap &allFiles, const Co
|
|||
if (tstr.lastChar() == '.')
|
||||
tstr.deleteLastChar();
|
||||
|
||||
allFiles[tstr] = *file; // Record the presence of this file
|
||||
if (efname.lastChar() == '.')
|
||||
efname.deleteLastChar();
|
||||
|
||||
allFiles[tstr] = *file; // Record the presence of this file
|
||||
allFiles[efname] = *file; // ...and its file name
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue