[PATCH 06/11] user32: Removed check which could never be true.

Florian Köberle florian at fkoeberle.de
Tue Jan 20 06:52:38 CST 2009


The check will never be true as the following
code gets executed first:

style &= ~(WS_DLGFRAME | WS_BORDER | WS_THICKFRAME);
---
 dlls/user32/winpos.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index cef5314..9eed61f 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -686,7 +686,7 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos,
         MinMax.ptMaxTrackSize.x = GetSystemMetrics(SM_CXMAXTRACK);
         MinMax.ptMaxTrackSize.y = GetSystemMetrics(SM_CYMAXTRACK);
 
-        if ((exstyle & WS_EX_DLGMODALFRAME) || ((style & WS_DLGFRAME) && !(style & WS_BORDER)))
+        if (exstyle & WS_EX_DLGMODALFRAME)
         {
             xinc = GetSystemMetrics(SM_CXDLGFRAME);
             yinc = GetSystemMetrics(SM_CYDLGFRAME);
-- 
1.5.4.3




More information about the wine-patches mailing list