diff --git a/deps/ox/src/ox/fs/filesystem/directory.hpp b/deps/ox/src/ox/fs/filesystem/directory.hpp index e6693c0f..96ed5d0f 100644 --- a/deps/ox/src/ox/fs/filesystem/directory.hpp +++ b/deps/ox/src/ox/fs/filesystem/directory.hpp @@ -269,7 +269,7 @@ Error Directory::remove(PathIterator path, FileName *nameB for (auto i = buff->iterator(); i.valid(); i.next()) { auto data = i->data(); if (data.valid()) { - if (data->name == name) { + if (name == data->name) { oxReturnError(buff->free(i)); } } else { @@ -319,7 +319,7 @@ Result Directory::findEntry auto data = i->data(); if (data.valid()) { oxTracef("ox::fs::Directory::findEntry", "Comparing \"{}\" to \"{}\"", name, data->name); - if (data->name == name) { + if (name == data->name) { oxTracef("ox::fs::Directory::findEntry", "\"{}\" match found.", name); return static_cast(data->inode); }