user32: Replaced && 0xff by & 0xff.
This commit is contained in:
parent
7c0de330f9
commit
6e413d2cd3
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue