Fix user state on windows

(msb must be left to 0, this is an unsigned int on windows).

Code folding now works fine on windows too.