Permalink
Browse files

Nekotekina: Fix loading nonexistent libs

Nekotekina's fix for preventing loading nonexistent libs
  • Loading branch information...
1 parent 5d705c0 commit 63169d767977faf50f55117174d4f62944631b11 @AniLeo AniLeo committed with Nekotekina Feb 14, 2017
Showing with 6 additions and 1 deletion.
  1. +6 −1 rpcs3/Crypto/unself.cpp
@@ -1258,7 +1258,12 @@ static bool CheckDebugSelf(fs::file& s)
}
extern fs::file decrypt_self(fs::file elf_or_self)
-{
+{
+ if (!elf_or_self)
+ {
+ return fs::file{};
+ }
+
elf_or_self.seek(0);
// Check SELF header first. Check for a debug SELF.

0 comments on commit 63169d7

Please sign in to comment.