[Kernel] Fix return of CreateContent/OpenContent in ContentManager when an already open package was found.

This commit is contained in:
gibbed 2018-05-24 11:16:46 -05:00
parent 85ad87eb73
commit 14c73a33f9
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ X_RESULT ContentManager::CreateContent(std::string root_name,
if (open_packages_.count(root_name)) {
// Already content open with this root name.
return X_ERROR_INVALID_NAME;
return X_ERROR_ALREADY_EXISTS;
}
auto package_path = ResolvePackagePath(data);
@ -172,7 +172,7 @@ X_RESULT ContentManager::OpenContent(std::string root_name,
if (open_packages_.count(root_name)) {
// Already content open with this root name.
return X_ERROR_INVALID_NAME;
return X_ERROR_ALREADY_EXISTS;
}
auto package_path = ResolvePackagePath(data);