VirtualBox

Ignore:
Timestamp:
Jun 28, 2016 1:24:52 AM (8 years ago)
Author:
vboxsync
Message:

fix for ​​​​bugref:8441: improved windows procedures in Clipboard, DND and HostPowerWin.

Location:
trunk/src/VBox/Additions/WINNT/VBoxTray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp

    r60784 r61908  
    659659        } break;
    660660
     661        case WM_DESTROY:
     662        {
     663            vboxClipboardRemoveFromCBChain(pCtx);
     664            if (pCtx->timerRefresh)
     665                KillTimer(pCtx->hwnd, 0);
     666            /*
     667             * don't need to call PostQuitMessage cause
     668             * the VBoxTray already finished a message loop
     669             */
     670        } break;
     671
    661672        default:
    662673        {
     
    732743    if (pCtx->hwnd)
    733744    {
    734         vboxClipboardRemoveFromCBChain(pCtx);
    735         if (pCtx->timerRefresh)
    736             KillTimer(pCtx->hwnd, 0);
    737 
    738745        DestroyWindow(pCtx->hwnd);
    739746        pCtx->hwnd = NULL;
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp

    r59844 r61908  
    289289        {
    290290            MSG uMsg;
    291             while (GetMessage(&uMsg, 0, 0, 0))
     291            BOOL fRet;
     292            while ((fRet = GetMessage(&uMsg, 0, 0, 0)) > 0)
    292293            {
    293294                TranslateMessage(&uMsg);
    294295                DispatchMessage(&uMsg);
    295296            }
     297            Assert(fRet >= 0);
    296298
    297299            if (ASMAtomicReadBool(&pCtx->fShutdown))
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