fix fsdev bug

This commit is contained in:
Michael Scire 2019-03-24 23:40:47 +01:00 committed by fincs
parent 1bea504732
commit 5575966d0c

View File

@ -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)
{