Module: wine Branch: master Commit: 64e63f455084d92c0da60cdafd0e1f303807e2ea URL: http://source.winehq.org/git/wine.git/?a=commit;h=64e63f455084d92c0da60cdafd... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Sun Oct 4 21:27:53 2015 -0600 user32: Remove always-false condition. Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com> --- dlls/user32/button.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dlls/user32/button.c b/dlls/user32/button.c index 248df74..9a10b86 100644 --- a/dlls/user32/button.c +++ b/dlls/user32/button.c @@ -443,7 +443,6 @@ LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, break; case BM_SETSTYLE: - if ((wParam & BS_TYPEMASK) >= MAX_BTN_TYPE) break; btn_type = wParam & BS_TYPEMASK; style = (style & ~BS_TYPEMASK) | btn_type; WIN_SetStyle( hWnd, style, BS_TYPEMASK & ~style );