https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7f1df040ed5693fab747c…
commit 7f1df040ed5693fab747c3e24740f68384e1d8d6
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Dec 26 21:50:41 2023 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Tue Dec 26 21:50:41 2023 +0900
[COMDLG32] Color Picker: Limit value by maxval (#6225)
Set maximum value to value if
value was beyond maximum value.
CORE-19402
---
dll/win32/comdlg32/colordlg.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dll/win32/comdlg32/colordlg.c b/dll/win32/comdlg32/colordlg.c
index 517cb4ea627..1acf3524666 100644
--- a/dll/win32/comdlg32/colordlg.c
+++ b/dll/win32/comdlg32/colordlg.c
@@ -421,6 +421,9 @@ static int CC_CheckDigitsInEdit( HWND hwnd, int maxval )
value = atoi(buffer);
if (value > maxval) /* build a new string */
{
+#ifdef __REACTOS__
+ value = maxval;
+#endif
sprintf(buffer, "%d", maxval);
result = 2;
}