twinaphex 2020-07-03 22:18:11 +02:00
parent 2063f4ac41
commit 6fcd1406c3

2
deps/libz/inflate.c vendored
View File

@ -1498,7 +1498,7 @@ int inflateValidate(z_streamp strm, int check)
strm->state == Z_NULL)
return Z_STREAM_ERROR;
state = (struct inflate_state FAR *)strm->state;
if (check)
if (check && state->wrap)
state->wrap |= 4;
else
state->wrap &= ~4;