mirror of
https://github.com/Garhoogin/NitroPaint.git
synced 2025-06-18 14:25:31 -04:00
Fix erroneous empty Mario vs Donkey Kong detection
This commit is contained in:
parent
c775d17814
commit
734e932b22
@ -2774,7 +2774,7 @@ static int CxiMvdkGetCompressionType(const unsigned char *buffer, unsigned int s
|
||||
}
|
||||
|
||||
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;
|
||||
int type = CxiMvdkGetCompressionType(buffer, size);
|
||||
|
Loading…
Reference in New Issue
Block a user