On Tue Sep 2 16:03:33 2025 +0000, Vibhav Pant wrote:
When using `OPC_COMPRESSION_NONE`, Windows sets`method` to 0. We should also set the bits to denote the compression speed, as described by the [PKZIP appnote](https://pkwaredownloads.blob.core.windows.net/pkware-general/Documentation/A...) (4.4.4 general purpose bit flag):
Bit 2 Bit 1 \ 0 0 Normal (-en) compression option was used.
0 1 Maximum (-exx/-ex) compression option was used.
1 0 Fast (-ef) compression option was used.
1 1 Super Fast (-es) compression option was used.
Native also does the same, as these fields are needed to implement`IOpcPart::GetCompressionOptions` while reading packages.
Yes, good point. I'll add another commit for that. It's an existing issue.