Changeset 8280 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Apr 22, 2008 12:28:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/clipboard-helper.cpp
r8268 r8280 117 117 } 118 118 } 119 else 120 /* Check for a single carriage return (MacOS) */ 121 if (pwszSrc[i] == CARRIAGERETURN) 119 /* Check for a single carriage return (MacOS) */ 120 else if (pwszSrc[i] == CARRIAGERETURN) 121 { 122 /* set cr */ 123 pu16Dest[j] = CARRIAGERETURN; 124 ++j; 125 if (j == cwDest) 122 126 { 123 /* set cr */ 124 pu16Dest[j] = CARRIAGERETURN; 125 ++j; 126 if (j == cwDest) 127 { 128 LogFlowFunc(("returning VERR_BUFFER_OVERFLOW\n")); 129 return VERR_BUFFER_OVERFLOW; 130 } 131 /* add the lf */ 132 pu16Dest[j] = LINEFEED; 133 continue; 127 LogFlowFunc(("returning VERR_BUFFER_OVERFLOW\n")); 128 return VERR_BUFFER_OVERFLOW; 134 129 } 130 /* add the lf */ 131 pu16Dest[j] = LINEFEED; 132 continue; 133 } 135 134 pu16Dest[j] = pwszSrc[i]; 136 135 }
Note:
See TracChangeset
for help on using the changeset viewer.