mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-04 16:59:02 +00:00
[ctrtool] Fix compile errors
And comparisons which would have always returned false.
This commit is contained in:
+1
-1
@@ -119,7 +119,7 @@ int stream_out_flush(stream_out_context* ctx)
|
||||
if (ctx->outbufferpos > 0)
|
||||
{
|
||||
size_t writtenbytes = fwrite(ctx->outbuffer, 1, ctx->outbufferpos, ctx->outfile);
|
||||
if (writtenbytes < 0)
|
||||
if (writtenbytes == 0) // will be zero if nothing is written
|
||||
return 0;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user