string16
This commit is contained in:
@@ -48,7 +48,7 @@ fn mt_file_t *mt_find_file_exact(mt_files_t *root, s8_t path) {
|
||||
|
||||
fn mt_file_t *mt_find_file(mt_files_t *root, s8_t name) {
|
||||
for (mt_file_t *it = root->first; it; it = it->next) {
|
||||
if (s8_ends_with(name, it->path, false)) return it;
|
||||
if (s8_ends_with(name, it->path)) return it;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user