From fec4f081a0db5e6f96ff453f8027cabe7100caba Mon Sep 17 00:00:00 2001 From: d0k3 Date: Fri, 9 Dec 2016 15:30:22 +0100 Subject: [PATCH] Fix file lock check routines --- source/fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fs.c b/source/fs.c index fdb1cb9..e736f76 100644 --- a/source/fs.c +++ b/source/fs.c @@ -405,8 +405,8 @@ u32 GetWritePermissions() { bool FileCheck(const char* path) { FIL file; if (PathToNumFSA(path) < 0) return true; - if (f_open(&file, path, FA_READ | FA_OPEN_EXISTING) == FR_OK) { - f_close(&file); + if (fx_open(&file, path, FA_READ | FA_OPEN_EXISTING) == FR_OK) { + fx_close(&file); return true; } else return false; }