From 60b28eedfd0afc7ee6f708e0347e7a5170cfbd59 Mon Sep 17 00:00:00 2001 From: Adam Gundy <arg@cyberscience.com> Date: Sun, 30 Mar 2003 01:34:29 +0000 Subject: [PATCH] Make sure all the bits of the LDT are initialized. --- libs/wine/ldt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/wine/ldt.c b/libs/wine/ldt.c index 92231ea617f..f7cb4007c11 100644 --- a/libs/wine/ldt.c +++ b/libs/wine/ldt.c @@ -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 ) -- GitLab