From 813523dc491363b16f735d7529e3681a6046383e Mon Sep 17 00:00:00 2001 From: Iliyas Jorio Date: Tue, 29 Dec 2020 22:25:54 +0100 Subject: [PATCH] Fix HostVolume::OpenFork return code --- src/Files/HostVolume.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Files/HostVolume.cpp b/src/Files/HostVolume.cpp index c725c1e..69048cf 100644 --- a/src/Files/HostVolume.cpp +++ b/src/Files/HostVolume.cpp @@ -136,7 +136,6 @@ OSErr HostVolume::OpenFork(const FSSpec* spec, ForkType forkType, char permissio return fnfErr; } handle = std::make_unique(DataFork, permission, path, *spec); - return noErr; } else { @@ -150,7 +149,7 @@ OSErr HostVolume::OpenFork(const FSSpec* spec, ForkType forkType, char permissio ADFJumpToResourceFork(handle->GetStream()); } - return fnfErr; + return noErr; } static bool CaseInsensitiveAppendToPath(