VirtualBox

Changeset 64952 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Dec 18, 2016 5:08:22 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
112365
Message:

RTSignTool/add-nested-exe-signature: Forgot to insert the new PE checksum before writing it. Duh! Windows 10 didn't care much, but 7, 2008, 2008r2 and others did.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/tools/RTSignTool.cpp

    r64926 r64952  
    820820                                            if (SignToolPkcs7Exe_CalcPeCheckSum(pThis, hFile, &uCheckSum))
    821821                                            {
     822                                                uBuf.NtHdrs32.OptionalHeader.CheckSum = uCheckSum;
    822823                                                rc = RTFileWriteAt(hFile, offNtHdrs, &uBuf, cbNtHdrs, NULL);
    823824                                                if (RT_SUCCESS(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette