Skip to content

Commit 47b904a

Browse files
committed
Changes based on reviewer comments.
1 parent 5c9ab6a commit 47b904a

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

dll/win32/comctl32/edit.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5146,11 +5146,13 @@ static LRESULT CALLBACK EDIT_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR
51465146
{
51475147
SCROLLINFO si;
51485148

5149-
ZeroMemory(&si, sizeof(si));
51505149
si.cbSize = sizeof(si);
51515150
si.fMask = SIF_TRACKPOS;
51525151
if (!GetScrollInfo(hwnd, SB_VERT, &si))
5153-
return 1;
5152+
{
5153+
result = 1;
5154+
break;
5155+
}
51545156
result = EDIT_WM_VScroll(es, LOWORD(wParam), si.nTrackPos);
51555157
}
51565158
#else

win32ss/user/user32/controls/edit.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5354,11 +5354,13 @@ LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
53545354
{
53555355
SCROLLINFO si;
53565356

5357-
ZeroMemory(&si, sizeof(si));
53585357
si.cbSize = sizeof(si);
53595358
si.fMask = SIF_TRACKPOS;
53605359
if (!GetScrollInfo(hwnd, SB_VERT, &si))
5361-
return 1;
5360+
{
5361+
result = 1;
5362+
break;
5363+
}
53625364
result = EDIT_WM_VScroll(es, LOWORD(wParam), si.nTrackPos);
53635365
}
53645366
#else

0 commit comments

Comments
 (0)