From 39c2b8927b0f46ecb8601e626249ca4b34b4ae12 Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Fri, 28 Apr 2017 19:16:57 +0200 Subject: [PATCH] Fix mistake --- injector/source/patcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/injector/source/patcher.c b/injector/source/patcher.c index 6706a88..8f98137 100644 --- a/injector/source/patcher.c +++ b/injector/source/patcher.c @@ -52,7 +52,7 @@ static u32 dirCheck(FS_ArchiveID archiveId, const char *path) else { ret = R_SUCCEEDED(FSLDR_OpenDirectory(&handle, archive, dirPath)) ? 0 : 2; - if(ret) FSDIR_Close(handle); + if(!ret) FSDIR_Close(handle); FSLDR_CloseArchive(archive); }