VirtualBox

Changeset 84491 in vbox for trunk/src


Ignore:
Timestamp:
May 25, 2020 10:40:28 AM (5 years ago)
Author:
vboxsync
Message:

Runtime/tracelogreader.cpp: Only convert endianess if indicated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/log/tracelogreader.cpp

    r82968 r84491  
    10611061        if (pThis->cbTypeSize == 4)
    10621062        {
    1063             cb = RT_BSWAP_U32(*(uint32_t *)pbData);
     1063            if (pThis->fConvEndianess)
     1064                cb = RT_BSWAP_U32(*(uint32_t *)pbData);
     1065            else
     1066                cb = *(uint32_t *)pbData;
    10641067            pbData += 4;
    10651068        }
    10661069        else if (pThis->cbTypeSize == 8)
    10671070        {
    1068             cb = RT_BSWAP_U64(*(uint64_t *)pbData);
     1071            if (pThis->fConvEndianess)
     1072                cb = RT_BSWAP_U64(*(uint64_t *)pbData);
     1073            else
     1074                cb = *(uint64_t *)pbData;
    10691075            pbData += 8;
    10701076        }
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