VirtualBox

Ignore:
Timestamp:
Jun 21, 2013 11:49:51 AM (11 years ago)
Author:
vboxsync
Message:

HostPowerServiceWin: Missing RTThreadWait call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/win/HostPowerWin.cpp

    r44528 r46722  
    3232static WCHAR gachWindowClassName[] = L"VBoxPowerNotifyClass";
    3333
    34 HostPowerServiceWin::HostPowerServiceWin(VirtualBox *aVirtualBox) : HostPowerService(aVirtualBox)
     34HostPowerServiceWin::HostPowerServiceWin(VirtualBox *aVirtualBox) : HostPowerService(aVirtualBox), mThread(NIL_RTTHREAD)
    3535{
    3636    mHwnd = 0;
     
    5656        /* Send the quit message and wait for it be processed. */
    5757        SendMessage(mHwnd, WM_QUIT, 0, 0);
     58        RTThreadWait(mThread, 5000, NULL);
     59        mThread = NIL_RTTHREAD;
    5860    }
    5961}
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