mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
fix fsdev bug
This commit is contained in:
parent
1bea504732
commit
5575966d0c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user