[PATCH 0/1] MR4746: ComDlg32 / Color picker does not use "limited" value, leading to out of bound
ComDlg32 / Color picker does not use "limited" value, leading to out of bound This cause the lum bar to get crazy   -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4746
From: KRosUser <kyle.kcsoftwares(a)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; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4746
participants (2)
-
KRosUser -
Kyle Katarn (@KRosUser)