VirtualBox

Changeset 31962 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Aug 25, 2010 2:27:44 PM (14 years ago)
Author:
vboxsync
Message:

Additions/VBoxService: don't forget to remove the last thread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp

    r30013 r31962  
    355355    {
    356356        PVBOXSERVICECTRLTHREAD pNext = RTListNodeGetNext(&pNode->Node, VBOXSERVICECTRLTHREAD, Node);
     357        bool fLast = RTListNodeIsLast(&g_GuestControlExecThreads, &pNode->Node);
    357358
    358359        RTListNodeRemove(&pNode->Node);
    359360        RTMemFree(pNode);
    360361
    361         if (pNext && RTListNodeIsLast(&g_GuestControlExecThreads, &pNext->Node))
     362        if (fLast)
    362363            break;
    363364
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