VirtualBox

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


Ignore:
Timestamp:
Apr 14, 2010 8:44:47 PM (15 years ago)
Author:
vboxsync
Message:

alloc-ef.cpp: build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/alloc-ef.cpp

    r28317 r28326  
    332332        void *pv       = (char *)pvEFence + RTALLOC_EFENCE_SIZE;
    333333# ifdef RTALLOC_EFENCE_NOMAN_FILLER
    334         memset((char *)pv + cb, RTALLOC_EFENCE_NOMAN_FILLER, cbBlock - RTALLOC_EFENCE_SIZE - cbUnaligned);
     334        memset((char *)pv + cbUnaligned, RTALLOC_EFENCE_NOMAN_FILLER, cbBlock - RTALLOC_EFENCE_SIZE - cbUnaligned);
    335335# endif
    336336#else
     
    408408         */
    409409#  ifdef RTALLOC_EFENCE_IN_FRONT
    410         void *pvWrong = ASMMemIsAll8((char *)pv + pBlock->cb,
    411                                      RT_ALIGN_Z(pBlock->cb, PAGE_SIZE) - pBlock->cb,
     410        void *pvWrong = ASMMemIsAll8((char *)pv + pBlock->cbUnaligned,
     411                                     RT_ALIGN_Z(pBlock->cbAligned, PAGE_SIZE) - pBlock->cbUnaligned,
    412412                                     RTALLOC_EFENCE_NOMAN_FILLER);
    413413#  else
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