mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Need to actually set the pool fail callback when allocating a pool.
This commit is contained in:
parent
797d75363b
commit
5254f279d4
@ -143,6 +143,9 @@ object_pool *pool_alloc(void (*fail)(const char *message))
|
||||
return NULL;
|
||||
memset(pool, 0, sizeof(*pool));
|
||||
|
||||
/* set the failure handler */
|
||||
pool->fail = fail;
|
||||
|
||||
/* register the built-in types */
|
||||
pool_type_register(pool, OBJTYPE_MEMORY, "Memory", memory_destruct);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user