VirtualBox

Ignore:
Timestamp:
Sep 24, 2019 11:32:11 AM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/VBoxTray: Only report formats if we actually *have* formats to report.

File:
1 edited

Legend:

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

    r80965 r80967  
    482482       case WM_DRAWCLIPBOARD:
    483483       {
    484            LogFlowFunc(("WM_DRAWCLIPBOARD, hwnd %p\n", pWinCtx->hWnd));
     484           LogFlowFunc(("WM_DRAWCLIPBOARD: hwnd %p\n", pWinCtx->hWnd));
    485485
    486486           if (GetClipboardOwner() != hwnd)
     
    490490               SHCLFORMATDATA Formats;
    491491               int rc = SharedClipboardWinGetFormats(pWinCtx, &Formats);
    492                if (RT_SUCCESS(rc))
     492               if (   RT_SUCCESS(rc)
     493                   && Formats.uFormats != VBOX_SHCL_FMT_NONE)
     494               {
    493495                   rc = VbglR3ClipboardFormatsSend(&pCtx->CmdCtx, &Formats);
     496               }
    494497           }
    495498
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