mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-12-23 03:11:49 +01:00
Init the virtual /fs/ and /fs/vol/ path properly
This commit is contained in:
parent
50600d3d82
commit
4ac4e0a9a6
@ -112,7 +112,10 @@ void AddVirtualFSPath(const char *name, const char *alias, const char *prefix) {
|
||||
|
||||
VIRTUAL_FS = tmp;
|
||||
|
||||
VIRTUAL_FS[MAX_VIRTUAL_FS].name = strdup(name);
|
||||
VIRTUAL_FS[MAX_VIRTUAL_FS].name = strdup(name);
|
||||
VIRTUAL_FS[MAX_VIRTUAL_FS].alias = NULL;
|
||||
VIRTUAL_FS[MAX_VIRTUAL_FS].prefix = NULL;
|
||||
VIRTUAL_FS[MAX_VIRTUAL_FS].inserted = true;
|
||||
|
||||
MAX_VIRTUAL_FS++;
|
||||
}
|
||||
@ -132,7 +135,10 @@ void AddVirtualFSVOLPath(const char *name, const char *alias, const char *prefix
|
||||
|
||||
VIRTUAL_FS_VOL = tmp;
|
||||
|
||||
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].name = strdup(name);
|
||||
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].name = strdup(name);
|
||||
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].alias = NULL;
|
||||
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].prefix = NULL;
|
||||
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].inserted = true;
|
||||
|
||||
MAX_VIRTUAL_FS_VOL++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user