commit d9fc77715638070f0f26d11b8a661fd7ef120188
Author: Michael Day <contact@michaelcday.com>
AuthorDate: Mon Mar 20 11:47:30 2023 -0400
Commit: Michael Day <contact@michaelcday.com>
CommitDate: Tue Mar 21 13:59:23 2023 -0400
Properly catch `IsMid` failure
---
src/i_flmusic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/i_flmusic.c b/src/i_flmusic.c
index 3b607053..87bfe663 100644
--- a/src/i_flmusic.c
+++ b/src/i_flmusic.c
@@ -182,7 +182,7 @@ static boolean IsMid(const byte *mem, int len)
static void *I_FL_RegisterSong(void *data, int len)
{
- int result = 0;
+ int result = FLUID_FAILED;
player = new_fluid_player(synth);