(RPNG) Fix test compilation, currently fails though

This commit is contained in:
twinaphex 2020-01-30 17:52:32 +01:00
parent 0ff69ec3df
commit 7c0e80a415
2 changed files with 4 additions and 1 deletions

View File

@ -32,8 +32,11 @@ SOURCES_C := \
$(LIBRETRO_COMM_DIR)/file/archive_file.c \ $(LIBRETRO_COMM_DIR)/file/archive_file.c \
$(LIBRETRO_COMM_DIR)/file/archive_file_zlib.c \ $(LIBRETRO_COMM_DIR)/file/archive_file_zlib.c \
$(LIBRETRO_COMM_DIR)/file/file_path.c \ $(LIBRETRO_COMM_DIR)/file/file_path.c \
$(LIBRETRO_COMM_DIR)/file/file_path_io.c \
$(LIBRETRO_COMM_DIR)/streams/file_stream.c \ $(LIBRETRO_COMM_DIR)/streams/file_stream.c \
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c \ $(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c \
$(LIBRETRO_COMM_DIR)/streams/interface_stream.c \
$(LIBRETRO_COMM_DIR)/streams/memory_stream.c \
$(LIBRETRO_COMM_DIR)/streams/trans_stream.c \ $(LIBRETRO_COMM_DIR)/streams/trans_stream.c \
$(LIBRETRO_COMM_DIR)/streams/trans_stream_zlib.c \ $(LIBRETRO_COMM_DIR)/streams/trans_stream_zlib.c \
$(LIBRETRO_COMM_DIR)/streams/trans_stream_pipe.c \ $(LIBRETRO_COMM_DIR)/streams/trans_stream_pipe.c \

View File

@ -65,7 +65,7 @@ static bool rpng_load_image_argb(const char *path, uint32_t **data,
goto end; goto end;
} }
if (!rpng_set_buf_ptr(rpng, (uint8_t*)ptr)) if (!rpng_set_buf_ptr(rpng, (uint8_t*)ptr, file_len))
{ {
ret = false; ret = false;
goto end; goto end;