OSDN Git Service

Fix crash when clicking [Help] menu item on WinMerge x64 version
authorsdottaka <none@none>
Sun, 27 Feb 2011 19:24:20 +0000 (04:24 +0900)
committersdottaka <none@none>
Sun, 27 Feb 2011 19:24:20 +0000 (04:24 +0900)
Src/Merge.cpp

index 760e0ed..27fe316 100644 (file)
@@ -120,7 +120,8 @@ namespace Turn_STL_exceptions_into_MFC_exceptions
                        args[1] = (ULONG_PTR)pObject;
                        args[2] = (ULONG_PTR)pObjectInfo;
                }
-               if (int i = pObjectInfo->pCatchableTypeArray->nCatchableTypes)
+               int i;
+               if (pObjectInfo->pCatchableTypeArray && (i = pObjectInfo->pCatchableTypeArray->nCatchableTypes))
                {
                        const char *name = typeid(std::exception).raw_name();
                        if (pObjectInfo->pCatchableTypeArray->arrayOfCatchableTypes[i - 1]->pType->name == name)