GBA BIOS: Reject bit length 1 in HuffUnComp

This commit is contained in:
Jeffrey Pfau 2015-01-13 21:37:38 -08:00
parent 369ccc6402
commit 47661def29
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ static void _unHuffman(struct GBA* gba) {
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;
}