Hi Bram,
> Patch 7.3.767
> Problem: (Win32) The _errno used for iconv may be the wrong one.
> Solution: Use the _errno from iconv.dll. (Ken Takata)
> Files: src/mbyte.c
I had a report from Yasuhiro Matsumoto that this patch causes a crash
with some kind of iconv.dll. It seems that there is a linker that
sets pImpDesc->OriginalFirstThunk to 0. (old MinGW linker?)
If OriginalFirstThunk is 0, it must be skipped.
Attached patch fix this problem.
Thanks,
Ken Takata
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
# HG changeset patch
# Parent 795c74e975edddf1ffa800620c9bf5033711441a
diff --git a/src/mbyte.c b/src/mbyte.c
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -4330,6 +4330,8 @@
.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)