VirtualBox

Changeset 52534 in vbox


Ignore:
Timestamp:
Aug 31, 2014 2:42:40 PM (10 years ago)
Author:
vboxsync
Message:

Another load configuration kludge, this time for ntdll/xp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp

    r52405 r52534  
    34493449        if (u.Cfg64.Size != Dir.Size)
    34503450        {
    3451             /* Kludge, seen ati shipping 32-bit DLLs and EXEs with Dir.Size=0x40
     3451            /* Kludge #1, seen ati shipping 32-bit DLLs and EXEs with Dir.Size=0x40
    34523452               and Cfg64.Size=0x5c or 0x48.  Windows seems to deal with it, so
    34533453               lets do so as well. */
     
    34653465                rtldrPEConvert32BitLoadConfigTo64Bit(&u.Cfg64);
    34663466            }
     3467
     3468            /* Kludge #2, ntdll.dll from XP seen with Dir.Size=0x40 and Cfg64.Size=0x00. */
     3469            if (Dir.Size == 0x40 && u.Cfg64.Size == 0x00 && !pModPe->f64Bit)
     3470            {
     3471                u.Cfg64.Size = 0x40;
     3472                rtldrPEConvert32BitLoadConfigTo64Bit(&u.Cfg64);
     3473            }
     3474
    34673475            if (u.Cfg64.Size != Dir.Size)
    34683476            {
Note: See TracChangeset for help on using the changeset viewer.

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