Fix erroneous empty Mario vs Donkey Kong detection

This commit is contained in:
Garhoogin 2025-05-06 21:44:36 -05:00 committed by GitHub
parent c775d17814
commit 734e932b22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2774,7 +2774,7 @@ static int CxiMvdkGetCompressionType(const unsigned char *buffer, unsigned int s
} }
int CxIsCompressedMvDK(const unsigned char *buffer, unsigned int size) { int CxIsCompressedMvDK(const unsigned char *buffer, unsigned int size) {
if (size < 4) return MVDK_INVALID; if (size < 4) return 0;
uint32_t uncompSize = (*(uint32_t *) buffer) >> 2; uint32_t uncompSize = (*(uint32_t *) buffer) >> 2;
int type = CxiMvdkGetCompressionType(buffer, size); int type = CxiMvdkGetCompressionType(buffer, size);