diff options
author | Don Cross <cosinekitty@gmail.com> | 2015-08-01 18:34:54 -0400 |
---|---|---|
committer | Don Cross <cosinekitty@gmail.com> | 2015-08-01 18:34:54 -0400 |
commit | 4db007c3b1b8f793efecd4b4ac046147ee0d2485 (patch) | |
tree | f17041a5dcf9464e0473919bca635c9dd4a4e8df /lodepng_util.cpp | |
parent | 0bceffb6eca66fe405c59f5c58c6ef2ff1be4add (diff) |
encode() now returns error code if save_file() cannot open output file.
Before this change, encode() would return 0 whether or not the output
file was created. There was no way for a caller to know when the
file could not be created (e.g. due to a non-existent parent directory).
Changed save_file() to return error 79 if it cannot open output file.
encode() checks return code from save_file() and passes any error value
back to the caller.
Diffstat (limited to 'lodepng_util.cpp')
0 files changed, 0 insertions, 0 deletions