forked from len0rd/rockbox
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
|
@ -597,7 +597,7 @@ void DoUserDialog(char* filename)
|
|||
char default_filename[32];
|
||||
int button;
|
||||
int rc; /* generic return code */
|
||||
ssize_t memleft;
|
||||
size_t memleft;
|
||||
tCheckROM result;
|
||||
bool is_romless;
|
||||
|
||||
|
@ -644,7 +644,7 @@ void DoUserDialog(char* filename)
|
|||
}
|
||||
|
||||
/* "allocate" memory */
|
||||
sector = rb->plugin_get_buffer((size_t *)&memleft);
|
||||
sector = rb->plugin_get_buffer(&memleft);
|
||||
if (memleft < SEC_SIZE) /* need buffer for a flash sector */
|
||||
{
|
||||
rb->splash(HZ*3, "Out of memory");
|
||||
|
@ -837,7 +837,7 @@ void DoUserDialog(char* filename)
|
|||
char default_filename[32];
|
||||
int button;
|
||||
int rc; /* generic return code */
|
||||
ssize_t memleft;
|
||||
size_t memleft;
|
||||
tCheckROM result;
|
||||
bool is_romless;
|
||||
|
||||
|
@ -884,7 +884,7 @@ void DoUserDialog(char* filename)
|
|||
}
|
||||
|
||||
/* "allocate" memory */
|
||||
sector = rb->plugin_get_buffer((size_t *)&memleft);
|
||||
sector = rb->plugin_get_buffer(&memleft);
|
||||
if (memleft < SEC_SIZE) /* need buffer for a flash sector */
|
||||
{
|
||||
rb->splash(HZ*3, "Out of memory");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue