Commit bb6c1f06 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

krnl386.exe16: Fixed get selector bit logic (Coverity).

parent 8c41caaa
......@@ -297,7 +297,7 @@ WORD WINAPI SelectorAccessRights16( WORD sel, WORD op, WORD val )
if (op == 0) /* get */
{
return entry.HighWord.Bytes.Flags1 | ((entry.HighWord.Bytes.Flags2 << 8) & 0xf0);
return entry.HighWord.Bytes.Flags1 | ((entry.HighWord.Bytes.Flags2 & 0xf0) << 8);
}
else /* set */
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment