If 'Exists' true, pFile is not nullptr.
Mark Nefedov
2 years ago
50 | 50 |
const auto& Path = DummyFile.GetPath(); // This is necessary to correct slashes
|
51 | 51 |
FILE* pFile = fopen(Path.c_str(), "r");
|
52 | 52 |
bool Exists = (pFile != nullptr);
|
53 | |
if (Exists && pFile)
|
|
53 |
if (Exists)
|
54 | 54 |
fclose(pFile);
|
55 | 55 |
return Exists;
|
56 | 56 |
}
|