Fix crash of simulator if directory does not exist.

This commit is contained in:
Arne Schwabe
2016-03-29 19:04:24 +02:00
parent 41b1e1c9bc
commit 90f67cd5ef
+1 -1
View File
@@ -880,7 +880,7 @@ FRESULT f_opendir (DIR * rep, const TCHAR * name)
FRESULT f_closedir (DIR * rep)
{
TRACE("f_closedir(%p)", rep);
simu::closedir((simu::DIR *)rep->fs);
if (rep->fs) simu::closedir((simu::DIR *)rep->fs);
return FR_OK;
}