From 31a0f9155c18e2a7c351d66b0e1d46b627db5f89 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 22 Dec 2016 20:42:06 -0800 Subject: [PATCH] Updated to handle UMX archives with empty type specifier. --- Plugins/Dumb/archive/umx/umx.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Plugins/Dumb/archive/umx/umx.mm b/Plugins/Dumb/archive/umx/umx.mm index 59840d400..b50bf4ccf 100644 --- a/Plugins/Dumb/archive/umx/umx.mm +++ b/Plugins/Dumb/archive/umx/umx.mm @@ -48,8 +48,7 @@ void * unpackUmx( const void * in, long * size ) if (classname && !strcmp(pkg.oclassname(i), "Music")) { char * type = pkg.otype(i); - if (!type) continue; - if (!strcasecmp(type, "it") || !strcasecmp(type, "s3m") || !strcasecmp(type, "xm")) + if (!type || !strcasecmp(type, "it") || !strcasecmp(type, "s3m") || !strcasecmp(type, "xm")) { *size = pkg.object_size(i); void * ret = malloc( *size );