ComDlg32 / Color picker does not use "limited" value, leading to out of bound
This cause the lum bar to get crazy
![image](/uploads/ed7511b46d1aa89e2828ddcb10f8816c/image.png) ![image](/uploads/c4d8b78416bf24929aca9a308baebd94/image.png)
From: KRosUser kyle.kcsoftwares@gmail.com
--- dlls/comdlg32/colordlg.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/comdlg32/colordlg.c b/dlls/comdlg32/colordlg.c index e16014c8d19..1048e73a33f 100644 --- a/dlls/comdlg32/colordlg.c +++ b/dlls/comdlg32/colordlg.c @@ -417,6 +417,7 @@ static int CC_CheckDigitsInEdit( HWND hwnd, int maxval ) value = atoi(buffer); if (value > maxval) /* build a new string */ { + value = maxval; sprintf(buffer, "%d", maxval); result = 2; }