VirtualBox

Changeset 26828 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Feb 26, 2010 11:12:20 AM (15 years ago)
Author:
vboxsync
Message:

VBoxTray/Clipboard: Bugfixes.

File:
1 edited

Legend:

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

    r26826 r26828  
    139139            {
    140140                /* Clipboard was updated by another application. */
    141                 rc = vboxClipboardChanged(pCtx);
     141                /* WM_DRAWCLIPBOARD always expects a return code of 0, so don't change "rc" here. */
     142                if (RT_FAILURE(vboxClipboardChanged(pCtx))
     143                    Log(("vboxClipboardProcessMsg: vboxClipboardChanged failed, rc = %Rrc\n", rc));
    142144            }
    143145
    144146            /* Pass the message to next windows in the clipboard chain. */
    145             if (RT_SUCCESS(rc))
    146                 rc = SendMessage(pCtx->hwndNextInChain, msg, wParam, lParam);
     147            SendMessage(pCtx->hwndNextInChain, msg, wParam, lParam);
    147148        } break;
    148149
     
    344345            if (FALSE == OpenClipboard(hwnd))
    345346            {
    346                 DWORD dwErr = GetLastError();
    347                 Log(("vboxClipboardProcessMsg: WM_USER: Failed to open clipboard! Last error = %ld\n", dwErr));
    348                 rc = RTErrConvertFromWin32(dwErr);
     347                Log(("vboxClipboardProcessMsg: WM_USER: Failed to open clipboard! Last error = %ld\n", GetLastErrors()));
    349348            }
    350349            else
     
    389388            if (FALSE == OpenClipboard(hwnd))
    390389            {
    391                 DWORD dwErr = GetLastError();
    392                 Log(("vboxClipboardProcessMsg: WM_USER + 1: Failed to open clipboard! Last error = %ld\n", dwErr));
    393                 rc = RTErrConvertFromWin32(dwErr);
     390                Log(("vboxClipboardProcessMsg: WM_USER: Failed to open clipboard! Last error = %ld\n", GetLastErrors()));
    394391            }
    395392            else
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