[MSPAINT] Set CC_RGBINIT to CMainWindow::ChooseColor

It had failed to set initial color. CORE-18867
This commit is contained in:
Katayama Hirofumi MZ 2023-06-13 15:47:41 +09:00
parent cb245ff711
commit 0087ea6597

View file

@ -159,6 +159,7 @@ BOOL CMainWindow::ChooseColor(IN OUT COLORREF *prgbColor)
choosecolor.lpCustColors = custColors;
}
choosecolor.Flags = CC_RGBINIT;
choosecolor.rgbResult = *prgbColor;
if (!::ChooseColor(&choosecolor))
return FALSE;