[Bug 30432] New: UpdateResource doesn't update PE checksum neither Resource Table virtual address

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Apr 14 10:00:15 CDT 2012


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 at winehq.org
        ReportedBy: kervala at 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list