VirtualBox

Changeset 23175 in vbox for trunk


Ignore:
Timestamp:
Sep 21, 2009 9:54:42 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52599
Message:

glue/initterm.cpp: Don't assume RTThreadSelf() won't return NIL_RTTHREAD in com::Initialize(). Should fix assertion on Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/initterm.cpp

    r23128 r23175  
    333333     *       counting, so this exercise is entirely for the EventQueue init. */
    334334    bool fRc;
    335     RTTHREAD hSelf = RTThreadSelf (); Assert (hSelf != NIL_RTTHREAD);
    336     ASMAtomicCmpXchgHandle (&gCOMMainThread, hSelf, NIL_RTTHREAD, fRc);
     335    RTTHREAD hSelf = RTThreadSelf ();
     336    if (hSelf != NIL_RTTHREAD)
     337        ASMAtomicCmpXchgHandle (&gCOMMainThread, hSelf, NIL_RTTHREAD, fRc);
     338    else
     339        fRc = false;
    337340    if (!fRc)
    338341    {
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