diff --git a/Dockerfile b/Dockerfile index b9a3196..98ad2a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/wiiu-env/devkitppc:20240423 +FROM ghcr.io/wiiu-env/devkitppc:20240505 COPY --from=ghcr.io/wiiu-env/libfunctionpatcher:20230621 /artifacts $DEVKITPRO COPY --from=ghcr.io/wiiu-env/wiiumodulesystem:20240424 /artifacts $DEVKITPRO diff --git a/src/FSWrapper.cpp b/src/FSWrapper.cpp index bbb1120..e4b17a5 100644 --- a/src/FSWrapper.cpp +++ b/src/FSWrapper.cpp @@ -129,7 +129,7 @@ FSError FSWrapper::FSReadDirWrapper(FSDirectoryHandle handle, FSDirectoryEntry * result = FS_ERROR_OK; } else { auto err = errno; - if (err != 0 && err != 2) { // newlib currently has a bug and doesn't clear errno properly when the end of a dir is reached + if (err != 0) { DEBUG_FUNCTION_LINE_ERR("[%s] Failed to read dir %08X (handle %08X). errno %d (%s)", getName().c_str(), dir, handle, err, strerror(err)); result = FS_ERROR_MEDIA_ERROR; }