Archive: possible bug: SelectSection macro in Sections.nsh


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. :)

Thanks. Uploaded.


You're welcome.

My thanks to yourself for all your hard work and everyone else involved in this endeavour. :D (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.


Thanks, always happy to help :D