mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-17 09:34:04 +00:00
Fix the sfload_mem example to actually read back the pointer address
This commit is contained in:
parent
457edfcdda
commit
78a6ce71a3
1 changed files with 2 additions and 3 deletions
|
@ -19,14 +19,13 @@ void *my_open(const char *filename)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
scanf("&%p", &p);
|
||||
sscanf(filename, "&%p", &p);
|
||||
return p;
|
||||
}
|
||||
|
||||
int my_read(void *buf, int count, void *handle)
|
||||
{
|
||||
// not yet implemented
|
||||
memset(buf, 0, count);
|
||||
// NYI
|
||||
return FLUID_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue