error handling in Save_PI1()
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
This commit is contained in:
parent
8a018fdb82
commit
0ce37b39b6
@ -1703,7 +1703,8 @@ void Save_PI1(T_IO_Context * context)
|
|||||||
if (context->Color_cycles)
|
if (context->Color_cycles)
|
||||||
{
|
{
|
||||||
PI1_save_ranges(context, buffer, 32);
|
PI1_save_ranges(context, buffer, 32);
|
||||||
Write_bytes(file,buffer,32);
|
if (!Write_bytes(file,buffer,32))
|
||||||
|
File_error=1;
|
||||||
}
|
}
|
||||||
fclose(file);
|
fclose(file);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user