Files
openttd/src
Niels Martin Hansen db2c0ccae0 Fix fdc2e85: Double close of file handles
When unpacking downloaded content, the downloaded .gz file was being opened with `fopen`, the OS file handle given to zlib, and then afterwards zlib told to close the file.

But the `FILE *` object was never closed with `fclose`, meaning the stdio library would have a hanging file object, whose file handle was now invalid or referred to a different file. This caused asserts during shutdown with Microsoft's C library in debug mode.

Fix this by properly duplicating the OS handle and `fclose`ing the `FILE *` object, before giving the handle to zlib.
2019-02-06 21:09:02 +01:00
..
2019-02-05 19:45:42 +01:00
2019-02-01 22:12:07 +00:00
2018-05-17 15:06:37 +01:00
2018-04-29 15:32:16 +02:00
2019-01-12 16:57:23 +00:00
2019-01-12 16:57:23 +00:00
2018-04-30 18:52:32 +02:00
2018-04-29 15:32:16 +02:00
2018-04-08 11:47:26 +02:00
2018-04-30 18:52:32 +02:00
2018-10-31 12:41:49 +01:00
2019-01-17 22:01:07 +00:00
2018-10-31 12:41:49 +01:00