while (KeepGoing && (OnePattern = FindCommaDelimited(FilePattern, i++)) != NULL) {
if (MetaiMatch(DirIter->LastFileInfo->FileName, OnePattern))
KeepGoing = FALSE;
+// Print(L"%s did%s match %s\n", DirIter->LastFileInfo->FileName, KeepGoing ? L" not" : L"", OnePattern);
} // while
// else continue loop
} else
break;
- } while (KeepGoing);
+ } while (KeepGoing && FilePattern);
*DirEntry = DirIter->LastFileInfo;
return TRUE;