mirror of
https://github.com/wiiu-env/libmocha.git
synced 2024-11-08 21:15:06 +01:00
Use the correct path for RemoveDevice to avoid always removing the default device (fs:)
This commit is contained in:
parent
75f31e0a3e
commit
0c624531ca
@ -111,7 +111,8 @@ MochaUtilsStatus Mocha_UnmountFS(const char *virt_name) {
|
||||
continue;
|
||||
}
|
||||
if (strcmp(mount->name, virt_name) == 0) {
|
||||
RemoveDevice(mount->name);
|
||||
std::string removeName = std::string(mount->name).append(":");
|
||||
RemoveDevice(removeName.c_str());
|
||||
fsa_free(mount);
|
||||
return MOCHA_RESULT_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user