Marcus Meissner : user32: Replaced && 0xff by & 0xff.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Nov 9 13:58:04 CST 2006


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

Author: Marcus Meissner <meissner at suse.de>
Date:   Thu Nov  9 15:39:58 2006 +0100

user32: Replaced && 0xff by & 0xff.

---

 dlls/user/text.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user/text.c b/dlls/user/text.c
index 5a823a7..e03130e 100644
--- a/dlls/user/text.c
+++ b/dlls/user/text.c
@@ -1083,7 +1083,7 @@ INT WINAPI DrawTextW( HDC hdc, LPCWSTR s
     memset (&dtp, 0, sizeof(dtp));
     if (flags & DT_TABSTOP)
     {
-        dtp.iTabLength = (flags >> 8) && 0xff;
+        dtp.iTabLength = (flags >> 8) & 0xff;
         flags &= 0xffff00ff;
     }
     return DrawTextExW(hdc, (LPWSTR)str, count, rect, flags, &dtp);
@@ -1099,7 +1099,7 @@ INT WINAPI DrawTextA( HDC hdc, LPCSTR st
     memset (&dtp, 0, sizeof(dtp));
     if (flags & DT_TABSTOP)
     {
-        dtp.iTabLength = (flags >> 8) && 0xff;
+        dtp.iTabLength = (flags >> 8) & 0xff;
         flags &= 0xffff00ff;
     }
     return DrawTextExA( hdc, (LPSTR)str, count, rect, flags, &dtp );




More information about the wine-cvs mailing list