mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-13 09:40:13 +01:00
pcsx2: Throw the exception
Coverity CID 146842: Dereference after null check (FORWARD_NULL)
This commit is contained in:
1 parent
76e61d4ef1
commit
addf3d5331
1 file changed
+1
-1
+1
-1
@@ -150,7 +150,7 @@ void ElfObject::readFile()
|
||||
FILE *f;
|
||||
|
||||
f = fopen( filename.ToUTF8(), "rb" );
|
||||
if (f == NULL) Exception::FileNotFound( filename );
|
||||
if (f == NULL) throw Exception::FileNotFound( filename );
|
||||
|
||||
fseek(f, 0, SEEK_SET);
|
||||
rsize = fread(data.GetPtr(), 1, data.GetSizeInBytes(), f);
|
||||
|
||||
Reference in new issue
Block a user