mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Fixed CID 1366296
This commit is contained in:
parent
c9e564bed8
commit
96bc191480
@ -229,7 +229,8 @@ bool FileStream::CreateFile(const boost::filesystem::path& filename)
|
||||
{
|
||||
FILE* f = do_open(filename.c_str(), CHAR_LITERAL("wb"));
|
||||
bool result = (f != nullptr);
|
||||
fclose(f);
|
||||
if(result)
|
||||
fclose(f);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user