mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 00:04:49 +02:00
Io: Prevent error on bad handle for DevType().
This commit is contained in:
@@ -439,6 +439,8 @@ int ISOFileSystem::Ioctl(u32 handle, u32 cmd, u32 indataPtr, u32 inlen, u32 outd
|
||||
|
||||
PSPDevType ISOFileSystem::DevType(u32 handle) {
|
||||
EntryMap::iterator iter = entries.find(handle);
|
||||
if (iter == entries.end())
|
||||
return PSPDevType::FILE;
|
||||
PSPDevType type = iter->second.isBlockSectorMode ? PSPDevType::BLOCK : PSPDevType::FILE;
|
||||
if (iter->second.isRawSector)
|
||||
type |= PSPDevType::EMU_LBN;
|
||||
|
||||
Reference in New Issue
Block a user