mirror of https://github.com/mpv-player/mpv
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:
parent
93cd7326b3
commit
ce701ae438
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue