]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.773 v7.3.773
authorBram Moolenaar <Bram@vim.org>
Sat, 19 Jan 2013 13:02:02 +0000 (14:02 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 19 Jan 2013 13:02:02 +0000 (14:02 +0100)
Problem:    Crash when OriginalFirstThunk is zero.
Solution:   Skip items with OriginalFirstThunk not set. (Ken Takata)

src/mbyte.c
src/version.c

index 5f82edf8d68e0aba2491c92d7f4c047ef7a909b0..7fdd44dc32c1e8d0115ff1046e3afc395e7abfb6 100644 (file)
@@ -4317,6 +4317,8 @@ get_iconv_import_func(HINSTANCE hInst, const char *funcname)
                                                            .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)
index 8b9a2414b18a50ec2de07722a0686b2326fc7772..b3e1c2903ab976e387a66b8aa5b029eec128130a 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    773,
 /**/
     772,
 /**/