From bb6c1f06af293eb2476f4d5db00e6a6746927276 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 10 May 2011 16:48:06 +0200 Subject: [PATCH] krnl386.exe16: Fixed get selector bit logic (Coverity). --- dlls/krnl386.exe16/selector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/krnl386.exe16/selector.c b/dlls/krnl386.exe16/selector.c index ec9bb2a5bab..5a99f72603d 100644 --- a/dlls/krnl386.exe16/selector.c +++ b/dlls/krnl386.exe16/selector.c @@ -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 */ {