I used PVS-Studio static analyzer to check this project. I would like to suggest a variant of the way to fix the copy-paste errors, detected with the help of V778 diagnostic. Description of the diagnostic: https://www.viva64.com/en/w/V778/
{
SDELETE(g_szBuf_UnquotedProperName);
}
- if (g_szBuf_UnquotedProperName != NULL)
+ if (g_szBuf_ProperName != NULL)
{
SDELETE(g_szBuf_ProperName);
}
}
if (varTypeIsGC(dsc2->TypeGet()))
{
- weight1 += BB_UNITY_WEIGHT / 2;
+ weight2 += BB_UNITY_WEIGHT / 2;
}
if (dsc2->lvRegister)
m_pLayouts[IMAGE_MAPPED]->EnumMemoryRegions(flags);
if (m_pLayouts[IMAGE_LOADED].IsValid() && m_pLayouts[IMAGE_LOADED]!=NULL)
m_pLayouts[IMAGE_LOADED]->EnumMemoryRegions(flags);
- if (m_pLayouts[IMAGE_LOADED_FOR_INTROSPECTION].IsValid() && m_pLayouts[IMAGE_LOADED]!=NULL)
+ if (m_pLayouts[IMAGE_LOADED_FOR_INTROSPECTION].IsValid() && m_pLayouts[IMAGE_LOADED_FOR_INTROSPECTION]!=NULL)
m_pLayouts[IMAGE_LOADED_FOR_INTROSPECTION]->EnumMemoryRegions(flags);
}