https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9879776950ac23ba2d092c...
commit 9879776950ac23ba2d092c014d6d5bb8d076d61e Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Tue Dec 24 04:11:33 2019 +0900 Commit: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com CommitDate: Tue Dec 24 04:11:33 2019 +0900
[MSPAINT] Use correct type for custColors --- base/applications/mspaint/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/base/applications/mspaint/main.cpp b/base/applications/mspaint/main.cpp index 381b193158b..2bc690ef1a5 100644 --- a/base/applications/mspaint/main.cpp +++ b/base/applications/mspaint/main.cpp @@ -155,7 +155,8 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument TCHAR ofnFilename[1000]; TCHAR ofnFiletitle[256]; TCHAR miniaturetitle[100]; - static int custColors[16] = { 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, + static COLORREF custColors[16] = { + 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff };
@@ -329,7 +330,7 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument choosecolor.hwndOwner = hwnd; choosecolor.hInstance = NULL; choosecolor.rgbResult = 0x00ffffff; - choosecolor.lpCustColors = (COLORREF*) &custColors; + choosecolor.lpCustColors = custColors; choosecolor.Flags = 0; choosecolor.lCustData = 0; choosecolor.lpfnHook = NULL;