mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-16 06:40:17 +00:00
Fixed an error when closing file streams (the file can't be closed
because it is opened by the user).
This commit is contained in:
parent
fad42803e4
commit
bdf06ed25d
@ -208,8 +208,11 @@ int jstream_tell(JStream stream)
|
|||||||
static void stream_file_close(JStream stream)
|
static void stream_file_close(JStream stream)
|
||||||
{
|
{
|
||||||
FILE *f = JSF->file;
|
FILE *f = JSF->file;
|
||||||
if ((f != stdin) && (f != stdout) && (f != stderr))
|
if ((f != stdin) && (f != stdout) && (f != stderr)) {
|
||||||
|
/* you must to close the file, here we can't do:
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
*/
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool stream_file_eof(JStream stream)
|
static bool stream_file_eof(JStream stream)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user