diff --git a/loader/ldt_keeper.c b/loader/ldt_keeper.c index 322bc93084..499ec23130 100644 --- a/loader/ldt_keeper.c +++ b/loader/ldt_keeper.c @@ -201,6 +201,7 @@ ldt_fs_t* Setup_LDT_Keeper(void) return NULL; } *(void**)((char*)ldt_fs->fs_seg+0x18) = ldt_fs->fs_seg; + memset(&array, 0, sizeof(array)); array.base_addr=(int)ldt_fs->fs_seg; array.entry_number=TEB_SEL_IDX; array.limit=array.base_addr+getpagesize()-1;