No subject


Tue Aug 30 17:20:58 CDT 2005


@@ -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.

-- 
Dmitry.




More information about the wine-devel mailing list