Small fixes

This commit is contained in:
DH 2014-02-16 10:28:32 +02:00
parent 3fdb50b0ea
commit 01f3763eb4
6 changed files with 24 additions and 23 deletions

View file

@ -148,8 +148,11 @@ int cellFsOpendir(u32 path_addr, mem32_t fd)
wxString localPath;
Emu.GetVFS().GetDevice(path, localPath);
vfsLocalDir* dir = new vfsLocalDir(localPath);
if(!dir->Open(localPath))
if(!dir->IsOpened())
{
delete dir;
return CELL_ENOENT;
}
fd = sys_fs.GetNewId(dir);
return CELL_OK;