VirtualBox

Changeset 1238 in vbox for trunk


Ignore:
Timestamp:
Mar 5, 2007 6:10:30 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19173
Message:

Pointer mess.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/MMAll.cpp

    r1237 r1238  
    2828#include "MMInternal.h"
    2929#include <VBox/vm.h>
     30#include <VBox/log.h>
    3031#include <iprt/assert.h>
    3132
     
    108109    /** @todo fix this properly; the ring 0 pVM address differs from the R3 one. */
    109110    if (R0Ptr >= pVM->pVMR0 && (RTR0UINTREG)R0Ptr < (RTR0UINTREG)pVM->pVMR0 + sizeof(*pVM))
    110         R3Ptr = (RTR3PTR)((RTR0UINTREG)R0Ptr - (RTR0UINTREG)pVM + (RTR0UINTREG)pVM->pVMR3);
     111        R3Ptr = (RTR3PTR)((RTR0UINTREG)R0Ptr - (RTR0UINTREG)pVM->pVMR0 + (RTR0UINTREG)pVM->pVMR3);
    111112    else
    112113        R3Ptr = (RTR3PTR)R0Ptr;
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