summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/overlay.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/overlay.c')
-rw-r--r--apps/plugins/lib/overlay.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/lib/overlay.c b/apps/plugins/lib/overlay.c
index 706d6c14a7..44bca1d989 100644
--- a/apps/plugins/lib/overlay.c
+++ b/apps/plugins/lib/overlay.c
@@ -46,7 +46,7 @@
46 The linker script for the overlay should use a base address towards the 46 The linker script for the overlay should use a base address towards the
47 end of the audiobuffer, just low enough to make the overlay fit. */ 47 end of the audiobuffer, just low enough to make the overlay fit. */
48 48
49enum plugin_status run_overlay(const struct plugin_api* rb, const void* parameter, 49enum plugin_status run_overlay(const void* parameter,
50 unsigned char *filename, unsigned char *name) 50 unsigned char *filename, unsigned char *name)
51{ 51{
52 int fd, readsize; 52 int fd, readsize;
@@ -107,6 +107,7 @@ enum plugin_status run_overlay(const struct plugin_api* rb, const void* paramete
107 rb->memset(header.load_addr + readsize, 0, 107 rb->memset(header.load_addr + readsize, 0,
108 header.end_addr - (header.load_addr + readsize)); 108 header.end_addr - (header.load_addr + readsize));
109 109
110 return header.entry_point(rb, parameter); 110 *(header.api) = rb;
111 return header.entry_point(parameter);
111} 112}
112#endif 113#endif