Patch for OLEClipbrd_IDataObject_GetData

Sander van Leeuwen sandervl at xs4all.nl
Sat Jan 26 04:52:48 CST 2002


Hi,

Forte Agent was unable to copy text from the clipboard into the message body window because
of a bug in this method.
I'm not sure how Wine's clipboard implementation works, but handles returned by GetClipboardData
are not supposed to be valid after the app calls CloseClipboard (see MS docs). 
The attached patch makes a copy of the clipboard handle and passes that to the application.
Forte Agent frees this handle after it has extracted the clipboard data, so there's no memory leak.

Sander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 929 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20020126/827bb38e/attachment.obj


More information about the wine-devel mailing list