Skip to content

Commit

Permalink
Update sd_fat.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed May 31, 2020
1 parent 9fa58b6 commit 69a9d4b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/eez/libs/sd_fat/simulator/sd_fat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,12 @@ SdFatResult Directory::findFirst(const char *path, const char *pattern, FileInfo
#ifdef EEZ_PLATFORM_SIMULATOR_WIN32
m_handle = FindFirstFileA(temp.c_str(), &fileInfo.m_ffd);
if (m_handle == INVALID_HANDLE_VALUE) {
// TODO check FatFs what he returns
return SD_FAT_RESULT_NO_PATH;
temp = getRealPath(path);
m_handle = FindFirstFileA(temp.c_str(), &fileInfo.m_ffd);
if (m_handle == INVALID_HANDLE_VALUE) {
// TODO check FatFs what he returns
return SD_FAT_RESULT_NO_PATH;
}
}
#else
m_handle = opendir(temp.c_str());
Expand Down

0 comments on commit 69a9d4b

Please sign in to comment.