Changeset 104761 in vbox
- Timestamp:
- May 22, 2024 2:46:08 PM (10 months ago)
- svn:sync-xref-src-repo-rev:
- 163328
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp
r104760 r104761 942 942 /* Insert '\r' in front of '\n', but avoid '\r\r\n' situations 943 943 because it will result in extra empty lines on the other side. */ 944 if ( i == 0 945 || ( i > 1 946 && pcwszSrc[i - 1] != VBOX_SHCL_CARRIAGERETURN 947 ) 948 ) 949 { 950 pu16Dst[j] = VBOX_SHCL_CARRIAGERETURN; 951 ++j; 952 } 944 if (i == 0 || pcwszSrc[i - 1] != VBOX_SHCL_CARRIAGERETURN) 945 pu16Dst[j++] = VBOX_SHCL_CARRIAGERETURN; 953 946 954 947 /* Not enough space in destination? */ … … 964 957 { 965 958 /* Set CR.r, but avoid '\r\r'. */ 966 if ( i == 0 967 || ( i > 1 968 && pcwszSrc[i - 1] != VBOX_SHCL_CARRIAGERETURN 969 ) 970 ) 971 { 972 pu16Dst[j] = VBOX_SHCL_CARRIAGERETURN; 973 ++j; 974 } 959 if (i == 0 || pcwszSrc[i - 1] != VBOX_SHCL_CARRIAGERETURN) 960 pu16Dst[j++] = VBOX_SHCL_CARRIAGERETURN; 975 961 976 962 /* Not enough space in destination? */
Note:
See TracChangeset
for help on using the changeset viewer.