initialize modify_ldt struct to 0.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14538 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-01-19 17:03:59 +00:00
parent 93cd7326b3
commit ce701ae438
1 changed files with 1 additions and 0 deletions

View File

@ -201,6 +201,7 @@ ldt_fs_t* Setup_LDT_Keeper(void)
return NULL; return NULL;
} }
*(void**)((char*)ldt_fs->fs_seg+0x18) = ldt_fs->fs_seg; *(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.base_addr=(int)ldt_fs->fs_seg;
array.entry_number=TEB_SEL_IDX; array.entry_number=TEB_SEL_IDX;
array.limit=array.base_addr+getpagesize()-1; array.limit=array.base_addr+getpagesize()-1;