Skip to content

Commit

Permalink
Update DefaultIOSystem.cpp (assimp#5697)
Browse files Browse the repository at this point in the history
- closes assimp#5678
  • Loading branch information
kimkulling authored Aug 2, 2024
1 parent e63d3ed commit a37d748
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/Common/DefaultIOSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ static std::string WideToUtf8(const wchar_t *in) {
// ------------------------------------------------------------------------------------------------
// Tests for the existence of a file at the given path.
bool DefaultIOSystem::Exists(const char *pFile) const {
if (pFile == nullptr) {
return false;
}

#ifdef _WIN32
struct __stat64 filestat;
if (_wstat64(Utf8ToWide(pFile).c_str(), &filestat) != 0) {
Expand Down

0 comments on commit a37d748

Please sign in to comment.