Mercurial > vim
changeset 4037:3db9aee957f7 v7.3.773
updated for version 7.3.773
Problem: Crash when OriginalFirstThunk is zero.
Solution: Skip items with OriginalFirstThunk not set. (Ken Takata)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 19 Jan 2013 14:02:02 +0100 |
parents | 5cf390d4fbe1 |
children | 990d0f9400dc |
files | src/mbyte.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mbyte.c +++ b/src/mbyte.c @@ -4317,6 +4317,8 @@ get_iconv_import_func(HINSTANCE hInst, c .VirtualAddress); for (; pImpDesc->FirstThunk; ++pImpDesc) { + if (!pImpDesc->OriginalFirstThunk) + continue; pIAT = (PIMAGE_THUNK_DATA)(pImage + pImpDesc->FirstThunk); pINT = (PIMAGE_THUNK_DATA)(pImage + pImpDesc->OriginalFirstThunk); for (; pIAT->u1.Function; ++pIAT, ++pINT)