diff options
Diffstat (limited to 'src/VBox/Additions/darwin')
-rw-r--r-- | src/VBox/Additions/darwin/VBoxClient/VBoxClientClipboardGuestToHost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VBox/Additions/darwin/VBoxClient/VBoxClientClipboardGuestToHost.cpp b/src/VBox/Additions/darwin/VBoxClient/VBoxClientClipboardGuestToHost.cpp index 2cef7257..c04ddddb 100644 --- a/src/VBox/Additions/darwin/VBoxClient/VBoxClientClipboardGuestToHost.cpp +++ b/src/VBox/Additions/darwin/VBoxClient/VBoxClientClipboardGuestToHost.cpp @@ -231,7 +231,7 @@ static int vbclClipboardHostPasteText(uint32_t u32ClientId, PRTUTF16 pwszData, u AssertPtrReturn(pwszData, VERR_INVALID_POINTER); size_t cwcTmp; /* (includes a schwarzenegger character) */ - int rc = ShClUtf16LFLenUtf8(pwszData, cbData / sizeof(RTUTF16), &cwcTmp); + int rc = ShClUtf16CalcNormalizedEolToCRLFLength(pwszData, cbData / sizeof(RTUTF16), &cwcTmp); AssertRCReturn(rc, rc); cwcTmp++; /* Add space for terminator. */ |