mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-06-02 10:01:57 +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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
scanf("&%p", &p);
|
sscanf(filename, "&%p", &p);
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
int my_read(void *buf, int count, void *handle)
|
int my_read(void *buf, int count, void *handle)
|
||||||
{
|
{
|
||||||
// not yet implemented
|
// NYI
|
||||||
memset(buf, 0, count);
|
|
||||||
return FLUID_OK;
|
return FLUID_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue