hotfix: fix inverted operator on GetDents

This commit is contained in:
Daniel R. 2024-12-05 18:45:55 +01:00
parent 98f0cb65d7
commit 15ae7a094d
No known key found for this signature in database
GPG key ID: B8ADC8F57BA18DBA

View file

@ -656,7 +656,7 @@ static int GetDents(int fd, char* buf, int nbytes, s64* basep) {
if (file == nullptr) { if (file == nullptr) {
return ORBIS_KERNEL_ERROR_EBADF; return ORBIS_KERNEL_ERROR_EBADF;
} }
if (file->type != Core::FileSys::FileType::Device) { if (file->type == Core::FileSys::FileType::Device) {
return file->device->getdents(buf, nbytes, basep); return file->device->getdents(buf, nbytes, basep);
} }