Bugfix: GetThreadSelectorEntry() sets read-write flag incorrectly.

This commit is contained in:
Ulrich Weigand 1999-11-21 02:02:20 +00:00 committed by Alexandre Julliard
parent cdf191a205
commit 3ee1c03efb
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ BOOL WINAPI GetThreadSelectorEntry( HANDLE hthread, DWORD sel,
ldtent->HighWord.Bits.Sys = 0;
ldtent->HighWord.Bits.Pres = 1;
ldtent->HighWord.Bits.Type = 0x10|(ldtentry.type << 2);
if (ldtentry.read_only)
if (!ldtentry.read_only)
ldtent->HighWord.Bits.Type|=0x2;
ldtent->HighWord.Bits.Granularity = ldtentry.limit_in_pages;
ldtent->HighWord.Bits.Default_Big = ldtentry.seg_32bit;