Module: wine Branch: master Commit: 0cd65f0083c30a4058b8439a0d463518a57037a9 URL: https://gitlab.winehq.org/wine/wine/-/commit/0cd65f0083c30a4058b8439a0d46351...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Fri Jul 22 21:52:32 2022 +0300
win32u: Remove some dead code from get_scroll_range() helper (Coverity).
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com
---
dlls/win32u/scroll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/win32u/scroll.c b/dlls/win32u/scroll.c index cb6d4b7a7c9..c9734e3bfd1 100644 --- a/dlls/win32u/scroll.c +++ b/dlls/win32u/scroll.c @@ -1242,8 +1242,8 @@ static BOOL get_scroll_range( HWND hwnd, int nBar, int *min, int *max ) struct scroll_info *info;
if (!(info = get_scroll_info_ptr( hwnd, nBar, FALSE ))) return FALSE; - if (min) *min = info ? info->minVal : 0; - if (max) *max = info ? info->maxVal : 0; + if (min) *min = info->minVal; + if (max) *max = info->maxVal; release_scroll_info_ptr( info ); return TRUE; }