Fix: file filter without "d: ..." (all f:) or without "f: ..." (all d:) does not work properly.
// Ignore lines beginning with '##'
size_t pos = str.find(commentLeader);
- if (pos == str.npos)
+ if (pos == 0)
return;
// Find possible comment-separator '<whitespace>##'
*/
BOOL TestAgainstRegList(const vector<FileFilterElement*> *filterList, LPCTSTR szTest)
{
+ if (filterList->size() == 0)
+ return FALSE;
+
int ovector[30];
char *compString = UCS2UTF8_ConvertToUtf8(szTest);
size_t stringlen = strlen(compString);