From: Nikolay Sivov nsivov@codeweavers.com
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; }