VirtualBox

Ignore:
Timestamp:
Feb 6, 2012 10:35:03 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76130
Message:

Build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBalloonCtrl/VBoxWatchdog.cpp

    r40012 r40013  
    667667    do
    668668    {
    669         int vrc = VINF_SUCCESS;
    670 
    671669        /* Initialize global weak references. */
    672670        g_pEventQ = com::EventQueue::getMainEventQueue();
     
    704702         * Set up modules.
    705703         */
    706         rc = watchdogStartModules();
    707         if (FAILED(rc))
     704        int vrc = watchdogStartModules();
     705        if (RT_FAILURE(vrc))
    708706            break;
    709707
     
    714712             */
    715713
    716             rc = RTCritSectEnter(&g_csMachines);
    717             if (RT_SUCCESS(rc))
     714            vrc = RTCritSectEnter(&g_csMachines);
     715            if (RT_SUCCESS(vrc))
    718716            {
    719717                for (unsigned j = 0; j < RT_ELEMENTS(g_aModules); j++)
     
    728726
    729727                int rc2 = RTCritSectLeave(&g_csMachines);
    730                 if (RT_SUCCESS(rc))
    731                     rc = rc2;
    732                 AssertRC(rc);
     728                if (RT_SUCCESS(vrc))
     729                    vrc = rc2;
     730                AssertRC(vrc);
    733731            }
    734732
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