Skip to content

Commit

Permalink
Updated file.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
ax-6 committed Aug 2, 2024
1 parent f883c3c commit 6b1159f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aqvm/base/file/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,12 @@ struct AqvmBaseFile_File* AqvmBaseFile_freopen(
// TODO
return NULL;
}

FILE* new_file = freopen(filename, mode, stream->file);
if (new_file == NULL) {
if (AqvmBaseFile_UnlockStream(stream) != 0) {
// TODO
return NULL;
}

// TODO
return NULL;
}
Expand Down

0 comments on commit 6b1159f

Please sign in to comment.