VirtualBox

Changeset 83953 in vbox


Ignore:
Timestamp:
Apr 23, 2020 3:21:16 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137507
Message:

GstHst/clipboard-win.cpp: Don't log the SetClipboardViewer as a failure just because there aren't any other viewers yet. Must check the last error value if it returns NULL, see documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp

    r83624 r83953  
    243243    BOOL fRc;
    244244    if (SharedClipboardWinIsNewAPI(pAPI))
    245     {
    246245        fRc = pAPI->pfnAddClipboardFormatListener(pCtx->hWnd);
    247     }
    248246    else
    249247    {
     248        SetLastError(NO_ERROR);
    250249        pCtx->hWndNextInChain = SetClipboardViewer(pCtx->hWnd);
    251         fRc = pCtx->hWndNextInChain != NULL;
     250        fRc = pCtx->hWndNextInChain != NULL || GetLastError() == NO_ERROR;
    252251    }
    253252
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