Skip to content
⌘ NSIS Forum Archive

Compile bug in 2.06

2 posts

Games#

Compile bug in 2.06

New to the forums. If this isn't the place to post a compile bug then I apologize and ask that you point me in the right direction 😳)

fileform.h excludes from the header struct as follows:

#ifdef NSIS_CONFIG_COMPONENTPAGE
int install_types[NSIS_MAX_INST_TYPES+1];
#endif


components.c tries to access g_header->install_types[i] in GetInstType(HTREEITEM *items). To fix I simply wrapped as follows as I don't believe I'm using a components page:

#ifdef NSIS_CONFIG_COMPONENTPAGE
if (!g_header->install_types[i]) {
continue;
}
#endif

cl
kichik#
Thanks, I'll fix it. SetCurInstType and GetCurInstType should be left out entirely when there is no components page.

For the next time, the best place to post definite bug reports is at:



If you're not sure you have found a bug, it's best to open a thread in the forums, discusss it a bit and submit it once you have all the needed details.