12 May
2014
12 May
'14
6:22 a.m.
+ state_id = IDS_STATE_MIN; + while(dwStateBit) { + state_id++; + dwStateBit /= 2; + }
It looks like ffs() could be used to do that. Actually it would be better to find a way to connect those resource ids with actual STATE_SYSTEM_* symbols, not sure if it's possible to do cleanly. Also I don't like formatting, especially prefixed names, but that's probably considered to be submitter choice.