VirtualBox

Changeset 29985 in vbox


Ignore:
Timestamp:
Jun 2, 2010 12:24:59 PM (15 years ago)
Author:
vboxsync
Message:

Fixed sign extension bug for 32 bits guests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp

    r29962 r29985  
    225225    {
    226226        /* We can't probe kernel memory ranges, so pretend it's one big region. */
    227         aRegions[idxRegion].GCRegionAddr = (RTGCPTR64)pBaseAddress;
     227        aRegions[idxRegion].GCRegionAddr = (RTGCPTR64)(PVOID)pBaseAddress;  /* stupid cast to avoid sign extension */
    228228        aRegions[idxRegion].cbRegion     = dwModuleSize;
    229229        idxRegion++;
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