resource.c: fix bug in read_compressed_wim_resource()