On Mon Mar 30 04:53:11 2026 +0000, Trent Waddington wrote:
The flags == 0 case is marked as todo_wine. I can add a FIXME but I think it's mostly abandoned on Windows also. CERT_PE_IMAGE_DIGEST_ALL_IMPORT_INFO should work, as should CERT_PE_IMAGE_DIGEST_RESOURCES |CERT_PE_IMAGE_DIGEST_ALL_IMPORT_INFO but I haven't done much testing for the CERT_PE_IMAGE_DIGEST_DEBUG_INFO flag, although it probably works. There's 32 bit and 64 bit, and then there's signed vs unsigned binaries. Lots of combinations here. I have written a similar test program and tried a bunch of exes and dlls. I'll try a bunch more. Tested on a dozen images, some 32 bit, some 64 bit. Restored the code that zeros out the reloc data directory and sections. Discovered that my tests had reloc before rsrc whereas every binary I've investigated has reloc after rsrc. Fixed my tests.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10295#note_134309