git.s-ol.nu forks/DiligentCore / fbdc8d5
If 'Exists' true, pFile is not nullptr. Mark Nefedov 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
5050 const auto& Path = DummyFile.GetPath(); // This is necessary to correct slashes
5151 FILE* pFile = fopen(Path.c_str(), "r");
5252 bool Exists = (pFile != nullptr);
53 if (Exists && pFile)
53 if (Exists)
5454 fclose(pFile);
5555 return Exists;
5656 }