André Hentschel : user32: Only select needed part of the flags.

Alexandre Julliard julliard at winehq.org
Thu Sep 16 14:09:07 CDT 2010


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Sep 16 19:59:22 2010 +0200

user32: Only select needed part of the flags.

---

 dlls/user32/uitools.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/uitools.c b/dlls/user32/uitools.c
index 2b63118..e11c411 100644
--- a/dlls/user32/uitools.c
+++ b/dlls/user32/uitools.c
@@ -939,7 +939,7 @@ static BOOL UITOOLS95_DrawFrameCaption(HDC dc, LPRECT r, UINT uFlags)
 
     UITOOLS95_DFC_ButtonPush(dc, r, uFlags & 0xff00);
 
-    switch(uFlags & 0xff)
+    switch(uFlags & 0xf)
     {
     case DFCS_CAPTIONCLOSE:     str[0] = 0x72; break;
     case DFCS_CAPTIONHELP:      str[0] = 0x73; break;




More information about the wine-cvs mailing list