This commit is contained in:
Arisotura 2019-03-30 18:01:54 +01:00
parent 2a2e6a0c76
commit 1038a075ee
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ FILE* OpenFile(const char* path, const char* mode, bool mustexist)
if (mustexist)
{
ret = fopen(path, "rb");
if (ret) ret = freopen(path, mode);
if (ret) ret = freopen(path, mode, ret);
}
else
ret = fopen(path, mode);