[COMDLG32] Color Picker: Limit value by maxval (#6225)

Set maximum value to value if
value was beyond maximum value.
CORE-19402
This commit is contained in:
Katayama Hirofumi MZ
2023-12-26 21:50:41 +09:00
committed by GitHub
parent 6e5fde7ebb
commit 7f1df040ed

View File

@@ -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;
}