commdlg: Explicitely initialize remaining fields of CHOOSECOLORA (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2015-12-29 20:52:03 +03:00 committed by Alexandre Julliard
parent ff94fc1daf
commit 4d3b87fc09
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ BOOL16 WINAPI ChooseColor16( LPCHOOSECOLOR16 cc16 )
cc32.lpCustColors = MapSL( cc16->lpCustColors );
cc32.Flags = cc16->Flags & ~(CC_ENABLETEMPLATE | CC_ENABLETEMPLATEHANDLE | CC_ENABLEHOOK);
cc32.lCustData = cc16->lCustData;
cc32.hInstance = NULL;
cc32.lpfnHook = NULL;
cc32.lpTemplateName = NULL;
if (cc16->Flags & (CC_ENABLETEMPLATE | CC_ENABLETEMPLATEHANDLE))
FIXME( "custom templates no longer supported, using default\n" );