Fix open flags check

Co-authored-by: Crementif <26669564+Crementif@users.noreply.github.com>
This commit is contained in:
Maschell 2022-07-27 22:08:46 +02:00
parent e1274af0ea
commit cd0f3d1281

View File

@ -48,7 +48,7 @@ int __fsa_open(struct _reent *r,
} }
// Open the file // 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; auto *deviceData = (FSADeviceData *) r->deviceData;