Initialize a constant buffer pointer with MultiByteToWideChar... you must cast, there is no way around it. Well, actually one could also declare a non const variable, write into it and assign it to the const pointer. Alexandre, let me know if you would prefer this solution. Changelog: * dlls/commdlg/colordlg.c Add missing cast -- Francois Gouget fgouget@free.fr http://fgouget.free.fr/ Linux: the choice of a GNU generation
Index: dlls/commdlg/colordlg.c =================================================================== RCS file: /home/wine/wine/dlls/commdlg/colordlg.c,v retrieving revision 1.30 diff -u -r1.30 colordlg.c --- dlls/commdlg/colordlg.c 2002/01/04 18:23:46 1.30 +++ dlls/commdlg/colordlg.c 2002/01/21 05:40:48 @@ -1510,7 +1510,7 @@ if (HIWORD(lpChCol->lpTemplateName)) { INT len = MultiByteToWideChar( CP_ACP, 0, lpChCol->lpTemplateName, -1, NULL, 0); lpcc->lpTemplateName = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) ); - MultiByteToWideChar( CP_ACP, 0, lpChCol->lpTemplateName, -1, lpcc->lpTemplateName, len ); + MultiByteToWideChar( CP_ACP, 0, lpChCol->lpTemplateName, -1, (LPWSTR)lpcc->lpTemplateName, len ); } else { lpcc->lpTemplateName = (LPWSTR)lpChCol->lpTemplateName; }