mirror of https://github.com/ZDoom/fluidsynth.git
Fix the sfload_mem example to actually read back the pointer address
This commit is contained in:
parent
457edfcdda
commit
78a6ce71a3
|
@ -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…
Reference in New Issue