Skip to content
Snippets Groups Projects
Commit 60b28eed authored by Adam Gundy's avatar Adam Gundy Committed by Alexandre Julliard
Browse files

Make sure all the bits of the LDT are initialized.

parent 96c70346
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,8 @@ struct modify_ldt_s
unsigned int read_exec_only : 1;
unsigned int limit_in_pages : 1;
unsigned int seg_not_present : 1;
unsigned int useable:1;
unsigned int useable : 1;
unsigned int garbage : 25;
};
static inline void fill_modify_ldt_struct( struct modify_ldt_s *ptr, const LDT_ENTRY *entry )
......@@ -63,6 +64,7 @@ static inline void fill_modify_ldt_struct( struct modify_ldt_s *ptr, const LDT_E
ptr->limit_in_pages = entry->HighWord.Bits.Granularity;
ptr->seg_not_present = !entry->HighWord.Bits.Pres;
ptr->useable = entry->HighWord.Bits.Sys;
ptr->garbage = 0;
}
static inline int modify_ldt( int func, struct modify_ldt_s *ptr, unsigned long count )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment