From 79946133c512de94f6adeceba0ee269dbe9a28fb Mon Sep 17 00:00:00 2001 From: Jason Summers Date: Thu, 6 May 2021 13:20:08 -0400 Subject: [PATCH] dms: Fixed "medium" decompression Broken by aebe90a69f10. --- modules/dms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dms.c b/modules/dms.c index de938933..91acd279 100644 --- a/modules/dms.c +++ b/modules/dms.c @@ -624,7 +624,7 @@ static void do_mediumlz77_internal(struct medium_ctx *mctx, struct dmsmedium_cmp ocode1 = (UI)de_bitreader_getbits(&mctx->bitrd, ocode1_nbits); tmp_code = ((first_code << ocode1_nbits) | ocode1) & 0xff; - fmtutil_get_lzhuf_d_code_and_len(first_code, &d_code2, &d_len2); + fmtutil_get_lzhuf_d_code_and_len(tmp_code, &d_code2, &d_len2); ocode2_nbits = d_len2; ocode2 = (UI)de_bitreader_getbits(&mctx->bitrd, ocode2_nbits); -- 2.11.4.GIT