VirtualBox

Changeset 97215 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Oct 18, 2022 5:34:00 PM (2 years ago)
Author:
vboxsync
Message:

Shared Clipboard: Windows host: Fixed typo in return code which prevented guest from re-reading host clipboard if initial buffer size was not big enough to fit host clipboard content, ticketref:21149.

Renamed VERR_BUFFER_OVERFLOW -> VINF_BUFFER_OVERFLOW.

This commit fixes the issue when guest could access
only 4Kb (or lees) of host clipboard buffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp

    r96407 r97215  
    102102                /* Do not copy data. The dst buffer is not enough. */
    103103                RTMemFree(pszBuf);
    104                 return VERR_BUFFER_OVERFLOW;
     104                return VINF_BUFFER_OVERFLOW;
    105105            }
    106106            memcpy(pvDst, pszBuf, cbBuf);
     
    115115
    116116        if (cbSrc > cbDst)
    117             return VERR_BUFFER_OVERFLOW;
     117            return VINF_BUFFER_OVERFLOW;
    118118
    119119        memcpy(pvDst, pvSrc, cbSrc);
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