mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[FREELDR] Fix bug in Btrfs filename lookups. (#1951)
This commit is contained in:
parent
a7f97cc70f
commit
b3f45a25c5
1 changed files with 1 additions and 1 deletions
|
@ -619,7 +619,7 @@ static BOOLEAN BtrFsLookupDirItemI(const struct btrfs_root_item *root, u64 dir_h
|
|||
name_buf = (char *) item + sizeof(*item);
|
||||
TRACE("Compare names %.*s and %.*s\n", name_len, name, item->name_len, name_buf);
|
||||
|
||||
if (_strnicmp(name, name_buf, name_len) == 0)
|
||||
if (name_len == item->name_len && _strnicmp(name, name_buf, name_len) == 0)
|
||||
{
|
||||
*ret_item = *item;
|
||||
result = TRUE;
|
||||
|
|
Loading…
Reference in a new issue