[PATCH 1/5] user32: Remove always-false condition.
Alex Henrie
alexhenrie24 at gmail.com
Sun Oct 4 22:27:53 CDT 2015
Coverity #731588,
"The condition (wParam & 0xfUL) >= 16UL cannot be true."
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 );
--
2.6.0
More information about the wine-patches
mailing list