mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-26 05:40:49 +00:00
Merge pull request #432 from sykhro/master
Fix the sfload_mem example to actually read back the pointer address
This commit is contained in:
commit
6518367e00
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