From 5575966d0ceee9604d411e596e33fcdc204e2a58 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 24 Mar 2019 23:40:47 +0100 Subject: [PATCH] fix fsdev bug --- nx/source/runtime/devices/fs_dev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nx/source/runtime/devices/fs_dev.c b/nx/source/runtime/devices/fs_dev.c index deced87d..ca08ae4e 100644 --- a/nx/source/runtime/devices/fs_dev.c +++ b/nx/source/runtime/devices/fs_dev.c @@ -283,13 +283,14 @@ static int _fsdevMountDevice(const char *name, FsFileSystem fs, fsdev_fsdevice * { fsdev_fsdevice *device = NULL; + _fsdevInit(); //Ensure fsdev is initialized + if(fsdevFindDevice(name)) //Device is already mounted with the same name. { fsFsClose(&fs); return -1; } - _fsdevInit(); //Ensure fsdev is initialized device = fsdevFindDevice(NULL); if(device==NULL) {