mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
pcsx2: Throw the exception
Coverity CID 146842: Dereference after null check (FORWARD_NULL)
This commit is contained in:
+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