mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-26 23:36:37 -04:00
Simulators: Fix pointer size vs. int size problems (64bit hosts) in plugin loader and codec loader.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8880 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e3f155dce2
commit
38b7547ef4
3 changed files with 36 additions and 35 deletions
|
|
@ -55,8 +55,8 @@
|
|||
unsigned char codecbuf[CODEC_SIZE];
|
||||
#endif
|
||||
void *sim_codec_load_ram(char* codecptr, int size,
|
||||
void* ptr2, int bufwrap, int *pd);
|
||||
void sim_codec_close(int pd);
|
||||
void* ptr2, int bufwrap, void **pd);
|
||||
void sim_codec_close(void *pd);
|
||||
#else
|
||||
#define sim_codec_close(x)
|
||||
extern unsigned char codecbuf[];
|
||||
|
|
@ -249,10 +249,10 @@ int codec_load_ram(char* codecptr, int size, void* ptr2, int bufwrap,
|
|||
return CODEC_ERROR;
|
||||
}
|
||||
#else /* SIMULATOR */
|
||||
int pd;
|
||||
void *pd;
|
||||
|
||||
hdr = sim_codec_load_ram(codecptr, size, ptr2, bufwrap, &pd);
|
||||
if (pd < 0)
|
||||
if (pd == NULL)
|
||||
return CODEC_ERROR;
|
||||
|
||||
if (hdr == NULL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue