Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com>
--
v2: d3d10/effect: Add signed integer compare instructions for expressions.
d3d10/effect: Implement instructions used for signed integer division.
https://gitlab.winehq.org/wine/wine/-/merge_requests/3896
On Thu Sep 21 20:34:12 2023 +0000, Aidan Khoury wrote:
> I can for this, but we also need to check if it's a 32-bit image since
> patch transforms are never applied to 64-bit images
`RtlImageNtHeader` lacks proper image boundary checks for e_lfanew, so using it in this case is not safe.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3870#note_46247
This clears up much of the todo list for mspatcha. GetFilePatchSignature* and NormalizeFileForPatchSignature have now been implemented in these changes.
These changes bring better support for things like the Adobe Acrobat installer without the need for things like the winetricks mspatcha.dll native dll override. Still needed is support for interleaved streams in the LZXD decompression logic, however this is a great start to better supporting software installers that use the Windows interface for creating and applying patches to files.
This is the beginning of the fixes required for bug 12501: https://bugs.winehq.org/show_bug.cgi?id=12501
--
v32: mspatcha: Use unaligned typedefs for basic types
mspatcha: Use string comparison for section names
mspatcha: Add support for 32-bit file image patch transforms
mspatcha: Add implementations for GetFilePatchSignature* routines
mspatcha: Add support for 32-bit file normalization
https://gitlab.winehq.org/wine/wine/-/merge_requests/3870