summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/FileMonitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DiscIO/FileMonitor.cpp')
-rw-r--r--Source/Core/DiscIO/FileMonitor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/FileMonitor.cpp b/Source/Core/DiscIO/FileMonitor.cpp
index d99bd14cd8..4743e7c1af 100644
--- a/Source/Core/DiscIO/FileMonitor.cpp
+++ b/Source/Core/DiscIO/FileMonitor.cpp
@@ -143,6 +143,9 @@ void FindFilename(u64 offset)
}
const std::string filename = pFileSystem->GetFileName(offset);
+
+ if (filename.empty())
+ return;
CheckFile(filename, pFileSystem->GetFileSize(filename));
}