Commit 4d3b87fc authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent ff94fc1d
...@@ -62,6 +62,9 @@ BOOL16 WINAPI ChooseColor16( LPCHOOSECOLOR16 cc16 ) ...@@ -62,6 +62,9 @@ BOOL16 WINAPI ChooseColor16( LPCHOOSECOLOR16 cc16 )
cc32.lpCustColors = MapSL( cc16->lpCustColors ); cc32.lpCustColors = MapSL( cc16->lpCustColors );
cc32.Flags = cc16->Flags & ~(CC_ENABLETEMPLATE | CC_ENABLETEMPLATEHANDLE | CC_ENABLEHOOK); cc32.Flags = cc16->Flags & ~(CC_ENABLETEMPLATE | CC_ENABLETEMPLATEHANDLE | CC_ENABLEHOOK);
cc32.lCustData = cc16->lCustData; cc32.lCustData = cc16->lCustData;
cc32.hInstance = NULL;
cc32.lpfnHook = NULL;
cc32.lpTemplateName = NULL;
if (cc16->Flags & (CC_ENABLETEMPLATE | CC_ENABLETEMPLATEHANDLE)) if (cc16->Flags & (CC_ENABLETEMPLATE | CC_ENABLETEMPLATEHANDLE))
FIXME( "custom templates no longer supported, using default\n" ); FIXME( "custom templates no longer supported, using default\n" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment