This commit is contained in:
Andrew Haynes
2026-03-22 18:33:16 -04:00
parent 5d8804fdeb
commit 1f9ff8fe3a
+1 -1
View File
@@ -177,7 +177,7 @@ jpeg_save(const unsigned int* src_buf, const JPEG* attr, const char* name)
if (!fptr || dst_buf == NULL || dst_size <= 0)
{
tj3Free(dst_buf);
return 0;
return 25;
}
fwrite(dst_buf, 1, dst_size, fptr);
fclose(fptr);