From cd0f3d12810fe2ca54a4136e6f29ecaf6b88ea1f Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 27 Jul 2022 22:08:46 +0200 Subject: [PATCH] Fix open flags check Co-authored-by: Crementif <26669564+Crementif@users.noreply.github.com> --- source/devoptab/devoptab_fsa_open.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/devoptab/devoptab_fsa_open.cpp b/source/devoptab/devoptab_fsa_open.cpp index 0d2c18d..c348587 100644 --- a/source/devoptab/devoptab_fsa_open.cpp +++ b/source/devoptab/devoptab_fsa_open.cpp @@ -48,7 +48,7 @@ int __fsa_open(struct _reent *r, } // Open the file - FSOpenFileFlags openFlags = (mode & O_UNENCRYPTED) ? FS_OPEN_FLAG_UNENCRYPTED : FS_OPEN_FLAG_NONE; + FSOpenFileFlags openFlags = (flags & O_UNENCRYPTED) ? FS_OPEN_FLAG_UNENCRYPTED : FS_OPEN_FLAG_NONE; auto *deviceData = (FSADeviceData *) r->deviceData;