aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/FileSystem/Content/ContentManager.cs
diff options
context:
space:
mode:
authorjduncanator <jduncanator@users.noreply.github.com>2018-11-19 11:20:17 +1100
committerAc_K <Acoustik666@gmail.com>2018-11-19 01:20:17 +0100
commit26e09474a95cfec1cdf718c033b80baf819e6f8f (patch)
tree8d78d1042ab1e6244369b3b3921b9f00b327c186 /Ryujinx.HLE/FileSystem/Content/ContentManager.cs
parentfe8fbb6fb9b85a528ddfa4848ec8e35fd9a5e9a5 (diff)
ContentServices: Handle null LocationEntry Path in VerifyContentType (#506)
When `LocationEntry.ContentPath` is `null`, we can always return `false` as it can't possibly be a valid `ContentType`
Diffstat (limited to 'Ryujinx.HLE/FileSystem/Content/ContentManager.cs')
-rw-r--r--Ryujinx.HLE/FileSystem/Content/ContentManager.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs
index 025eb261..3727841d 100644
--- a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs
+++ b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs
@@ -223,6 +223,11 @@ namespace Ryujinx.HLE.FileSystem.Content
private bool VerifyContentType(LocationEntry LocationEntry, ContentType ContentType)
{
+ if (LocationEntry.ContentPath == null)
+ {
+ return false;
+ }
+
StorageId StorageId = LocationHelper.GetStorageId(LocationEntry.ContentPath);
string InstalledPath = Device.FileSystem.SwitchPathToSystemPath(LocationEntry.ContentPath);