https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0087ea65977dbefab1755…
commit 0087ea65977dbefab17551799c740537a6588c31
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Jun 13 15:47:41 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Tue Jun 13 15:51:52 2023 +0900
[MSPAINT] Set CC_RGBINIT to CMainWindow::ChooseColor
It had failed to set initial color. CORE-18867
---
base/applications/mspaint/main.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/base/applications/mspaint/main.cpp b/base/applications/mspaint/main.cpp
index 971bfbba622..8d328de1e84 100644
--- a/base/applications/mspaint/main.cpp
+++ b/base/applications/mspaint/main.cpp
@@ -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;