Skip to content

Commit c34a1cc

Browse files
ClownacyLibretroAdmin
authored andcommitted
Fix filestream_tell_cb guard in file_stream.c.
Was checking the wrong variable, likely as the result of a copy-paste error. Would theoretically allow for null-pointer dereferences.
1 parent 7d4616b commit c34a1cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libretro-common/streams/file_stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ int64_t filestream_tell(RFILE *stream)
393393
{
394394
int64_t output;
395395

396-
if (filestream_size_cb)
396+
if (filestream_tell_cb)
397397
output = filestream_tell_cb(stream->hfile);
398398
else
399399
output = retro_vfs_file_tell_impl(

0 commit comments

Comments
 (0)