mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-17 12:07:38 -04:00
Fix size_t handling in plugin_get_buffer()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25884 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6027b91603
commit
8d4ff638b9
14 changed files with 42 additions and 36 deletions
|
@ -3059,11 +3059,13 @@ enum plugin_status plugin_start(const void* file)
|
|||
int lastbutton = BUTTON_NONE;
|
||||
bool autoscroll = false;
|
||||
long old_tick;
|
||||
size_t buf_size;
|
||||
|
||||
old_tick = *rb->current_tick;
|
||||
|
||||
/* get the plugin buffer */
|
||||
buffer = rb->plugin_get_buffer((size_t *)&buffer_size);
|
||||
buffer = rb->plugin_get_buffer(&buf_size);
|
||||
buffer_size = buf_size;
|
||||
if (buffer_size == 0)
|
||||
{
|
||||
rb->splash(HZ, "buffer does not allocate !!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue