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

This commit is contained in:
Marcus Meissner 2006-11-09 15:39:58 +01:00 committed by Alexandre Julliard
parent 7c0de330f9
commit 6e413d2cd3
1 changed files with 2 additions and 2 deletions

View File

@ -1083,7 +1083,7 @@ INT WINAPI DrawTextW( HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags )
memset (&dtp, 0, sizeof(dtp)); memset (&dtp, 0, sizeof(dtp));
if (flags & DT_TABSTOP) if (flags & DT_TABSTOP)
{ {
dtp.iTabLength = (flags >> 8) && 0xff; dtp.iTabLength = (flags >> 8) & 0xff;
flags &= 0xffff00ff; flags &= 0xffff00ff;
} }
return DrawTextExW(hdc, (LPWSTR)str, count, rect, flags, &dtp); return DrawTextExW(hdc, (LPWSTR)str, count, rect, flags, &dtp);
@ -1099,7 +1099,7 @@ INT WINAPI DrawTextA( HDC hdc, LPCSTR str, INT count, LPRECT rect, UINT flags )
memset (&dtp, 0, sizeof(dtp)); memset (&dtp, 0, sizeof(dtp));
if (flags & DT_TABSTOP) if (flags & DT_TABSTOP)
{ {
dtp.iTabLength = (flags >> 8) && 0xff; dtp.iTabLength = (flags >> 8) & 0xff;
flags &= 0xffff00ff; flags &= 0xffff00ff;
} }
return DrawTextExA( hdc, (LPSTR)str, count, rect, flags, &dtp ); return DrawTextExA( hdc, (LPSTR)str, count, rect, flags, &dtp );