[PATCH] replaced && 0xff by & 0xff

Marcus Meissner meissner at suse.de
Thu Nov 9 08:39:58 CST 2006


---

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

666d2f94d3a4fa57a140ddc1b56db520057b75b9
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 );
-- 
1.2.4



More information about the wine-patches mailing list