"Dustin Navea" speeddymon@gmail.com wrote:
Basically, before 01/11/05, copying and pasting to OO worked, and after said date, it doesn't.
The Bug is at: http://bugs.winehq.org/show_bug.cgi?id=2932 The patch causing it is at: http://www.winehq.org/hypermail/wine-cvs/2005/01/0276.html It looks like the patch removed W->A calls from the clipboard code.
From a cursory look it appears that the following chunk might cause a failure:
@@ -310,15 +335,24 @@ static void intern_atoms(void) names = HeapAlloc( GetProcessHeap(), 0, count * sizeof(*names) ); atoms = HeapAlloc( GetProcessHeap(), 0, count * sizeof(*atoms) );
- for (format = ClipFormats, i = 0; format; format = format->NextFormat) - if (!format->drvData) names[i++] = format->Name; + for (format = ClipFormats, i = 0; format; format = format->NextFormat) { + if (!format->drvData) { + len = WideCharToMultiByte(CP_UNIXCP, 0, format->Name, -1, NULL, -1, 0, 0);
particularly passing NULL, -1 as a target buffer. I'll send a patch.