VirtualBox

Changeset 28465 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 19, 2010 2:19:32 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60255
Message:

Guest Control: Update (context ID clamping).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r28463 r28465  
    596596
    597597    uint32_t uNewContext = ASMAtomicIncU32(&mNextContextID);
    598     /** @todo Add value clamping! */
     598    if (uNewContext == UINT32_MAX)
     599        ASMAtomicUoWriteU32(&mNextContextID, 1000);
    599600
    600601    CallbackContext context;
     
    648649        {
    649650            rc = progress->init(static_cast<IGuest*>(this),
    650                                 //static_cast<IConsole *>(this),
    651651                                BstrFmt(tr("Executing process")),
    652652                                FALSE);
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