Use the correct path for RemoveDevice to avoid always removing the default device (fs:)

This commit is contained in:
Maschell 2022-09-19 13:18:44 +02:00
parent 75f31e0a3e
commit 0c624531ca

View File

@ -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;
}