diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-01-19 17:03:59 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-01-19 17:03:59 +0000 |
commit | ce701ae4386237798ffe06447021481e8e8002fc (patch) | |
tree | e67456b202146338bc058d850650f203f1337743 /loader/ldt_keeper.c | |
parent | 93cd7326b356de318f510901886e91a4f650f849 (diff) | |
download | mpv-ce701ae4386237798ffe06447021481e8e8002fc.tar.bz2 mpv-ce701ae4386237798ffe06447021481e8e8002fc.tar.xz |
initialize modify_ldt struct to 0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14538 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/ldt_keeper.c')
-rw-r--r-- | loader/ldt_keeper.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |