VirtualBox

Changeset 103367 in vbox


Ignore:
Timestamp:
Feb 14, 2024 6:47:32 PM (10 months ago)
Author:
vboxsync
Message:

Shared Clipboard/Additions: Removed lots of code duplication for reading clipboard data from the host (partly introduced by r159772) [build fix].

File:
1 edited

Legend:

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

    r103366 r103367  
    497497                    {
    498498                        /* Wrap content into CF_HTML clipboard format if needed. */
    499                         if (!SharedClipboardWinIsCFHTML((const char *)pvMem))
     499                        if (!SharedClipboardWinIsCFHTML((const char *)pvData))
    500500                        {
    501501                            char    *pszWrapped = NULL;
     
    505505                            {
    506506                                AssertBreakStmt(cbWrapped, rc = VERR_INVALID_PARAMETER);
    507                                 pvData = RTMemReAlloc(pvData, cbWrapped);
     507                                pvData = RTMemRealloc(pvData, cbWrapped);
    508508                                if (pvData)
    509509                                {
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