Alex Henrie : user32: Remove always-false condition.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Oct 6 09:43:59 CDT 2015


Module: wine
Branch: master
Commit: 64e63f455084d92c0da60cdafd0e1f303807e2ea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=64e63f455084d92c0da60cdafd0e1f303807e2ea

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Sun Oct  4 21:27:53 2015 -0600

user32: Remove always-false condition.

Signed-off-by: Alex Henrie <alexhenrie24 at 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 );




More information about the wine-cvs mailing list