GBA BIOS: Reject bit length 1 in HuffUnComp

This commit is contained in:
Jeffrey Pfau 2015-01-13 21:37:38 -08:00
parent e0639990b5
commit 3c09508101
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ static void _unHuffman(struct GBA* gba, uint32_t source, uint32_t dest) {
GBALog(gba, GBA_LOG_GAME_ERROR, "Invalid Huffman bits");
bits = 8;
}
if (32 % bits) {
if (32 % bits || bits == 1) {
GBALog(gba, GBA_LOG_STUB, "Unimplemented unaligned Huffman");
return;
}