Add missing cast.

This commit is contained in:
Francois Gouget 2002-01-21 18:00:24 +00:00 committed by Alexandre Julliard
parent 8aceb00c52
commit 0881f2048d
1 changed files with 1 additions and 1 deletions

View File

@ -1510,7 +1510,7 @@ BOOL WINAPI ChooseColorA( LPCHOOSECOLORA lpChCol )
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;
}