VirtualBox

Changeset 66156 in vbox


Ignore:
Timestamp:
Mar 17, 2017 2:41:29 PM (8 years ago)
Author:
vboxsync
Message:

vmR3EmulationThreadWithId: Shadow variable warning fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/VMEmt.cpp

    r66155 r66156  
    228228         * indicating that we're now running.
    229229         */
    230         if (    RT_SUCCESS(rc)
    231             &&  pUVM->pVM)
    232         {
    233             PVM     pVM   = pUVM->pVM;
    234             PVMCPU  pVCpu = &pVM->aCpus[idCpu];
    235             if (    pVM->enmVMState == VMSTATE_RUNNING
    236                 &&  VMCPUSTATE_IS_STARTED(VMCPU_GET_STATE(pVCpu)))
    237             {
    238                 rc = EMR3ExecuteVM(pVM, pVCpu);
    239                 Log(("vmR3EmulationThread: EMR3ExecuteVM() -> rc=%Rrc, enmVMState=%d\n", rc, pVM->enmVMState));
     230        if (RT_SUCCESS(rc))
     231        {
     232            pVM = pUVM->pVM;
     233            if (pVM)
     234            {
     235                pVCpu = &pVM->aCpus[idCpu];
     236                if (   pVM->enmVMState == VMSTATE_RUNNING
     237                    && VMCPUSTATE_IS_STARTED(VMCPU_GET_STATE(pVCpu)))
     238                {
     239                    rc = EMR3ExecuteVM(pVM, pVCpu);
     240                    Log(("vmR3EmulationThread: EMR3ExecuteVM() -> rc=%Rrc, enmVMState=%d\n", rc, pVM->enmVMState));
     241                }
    240242            }
    241243        }
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