http://bugs.winehq.org/show_bug.cgi?id=30432
Bug #: 30432 Summary: UpdateResource doesn't update PE checksum neither Resource Table virtual address Product: Wine Version: 1.3.26 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: kervala@gmail.com Classification: Unclassified
Hi,
I'm implementing a mt.exe clone which only can add a manifest to an EXE or DLL file.
When I call BeginUpdateResource, UpdateResource and EndUpdateResource under Windows to add a .manifest to a .exe the modified .exe has a valid checksum and its Resource Table virtual address in PE header is defined.
Later if I call LoadLibrary and FindResourceEx with the resulting, it returns a correct pointer on the manifest resource.
But if I call the same functions under Linux with WINE, the manifest seems to be added to the EXE but the EXE checksum is set to 0 and Resource Table virtual address too, so if I check the Manifest with FindResourceEx it returns NULL because it can't find it.
I have some .exe with and without manifest and the corresponding .manifest if you're interested to compare PE header.
I also have a test case to check if manifest is found.
Please could you fix that ?
Thanks