Skip to content
Snippets Groups Projects
Commit 0881f204 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard
Browse files

Add missing cast.

parent 8aceb00c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment