mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Merge pull request #20979 from sum2012/npdrmRead-minor
Avoid nullptr in npdrmRead
This commit is contained in:
@@ -999,6 +999,10 @@ static u32 sceIoChstat(const char *filename, u32 iostatptr, u32 changebits) {
|
||||
|
||||
static u32 npdrmRead(FileNode *f, u8 *data, int size) {
|
||||
PGD_DESC *pgd = f->pgdInfo;
|
||||
if (!pgd) {
|
||||
ERROR_LOG(Log::IO, "npdrmRead: pgdInfo is null for file %s", f->fullpath.c_str());
|
||||
return 0;
|
||||
}
|
||||
u32 block, offset, blockPos;
|
||||
u32 remain_size, copy_size;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user