Changeset 19541 in vbox
- Timestamp:
- May 8, 2009 8:10:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp
r19540 r19541 1615 1615 AssertReturn(!(text_prop->value[i] & 0x80), XConverterNotFound); 1616 1616 char **ppList = (char **)RTMemAlloc(sizeof(char *)); 1617 char *pValue = (char *)RTMemDup(text_prop->value, text_prop->nitems + 1); 1617 char *pValue = (char *)RTMemAlloc(text_prop->nitems + 1); 1618 if (pValue) 1619 { 1620 memcpy(pValue, text_prop->value, text_prop->nitems); 1621 pValue[text_prop->nitems] = 0; 1622 } 1618 1623 if (ppList) 1619 1624 *ppList = pValue; … … 1731 1736 /* Otherwise this is probably a caller error. */ 1732 1737 Assert(target != g_selTarget); 1733 callback( NULL, closure, &selection, &type, NULL, &count, &format);1738 callback(widget, closure, &selection, &type, NULL, &count, &format); 1734 1739 /* Could not convert to target. */ 1735 1740 return; … … 1756 1761 format = 0; 1757 1762 } 1758 callback( NULL, closure, &selection, &type, pValue,1763 callback(widget, closure, &selection, &type, pValue, 1759 1764 &count, &format); 1760 1765 }
Note:
See TracChangeset
for help on using the changeset viewer.