mirror of
https://github.com/reactos/reactos.git
synced 2026-06-03 01:41:13 +08:00
[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:
committed by
GitHub
parent
6e5fde7ebb
commit
7f1df040ed
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user