Skip to content
⌘ NSIS Forum Archive

possible bug: SelectSection macro in Sections.nsh

4 posts

psyke#

possible bug: SelectSection macro in Sections.nsh

The SelectSection !macro in Sections.nsh is as follows (latest cvs):

!macro SelectSection SECTION
Push $0
SectionGetFlags "${SECTION}" $0
IntOp $0 $0 & ${SF_SELECTED}
SectionSetFlags "${SECTION}" $0
Pop $0
!macroend
I think it should be
IntOp $0 $0 | ${SF_SELECTED}
So that all bits (apart from bit 0 which we want to change) are properly preserved.

Salaam/Peace. 🙂
psyke#
You're welcome.

My thanks to yourself for all your hard work and everyone else involved in this endeavour. 😁 (Modern UI is a remarkable innovation for NSIS.)

I must say going through these forums that you are quite patient and helpful in responding to posts. 🙂

Salaam/Peace.