[2/2]user32: only select needed part of the flags
André Hentschel
nerv at dawncrow.de
Thu Sep 16 12:59:22 CDT 2010
Fixes:
Bug 24427 - Firefox 4.0 beta 6: window controls are blank when the Firefox button is visible
The DFCS_ Makros are from 0x0 to 0x4, firefox also passes DFCS_BUTTONPUSH (you can see it in mozillas code),
so e.g. the close-case gets 0x10, which is not handled and superfluous for a captionbutton.
---
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 df9d60c..e633b0b 100644
--- a/dlls/user32/uitools.c
+++ b/dlls/user32/uitools.c
@@ -933,7 +933,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;
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list