Indentation is a mix of tabs and spaces in this function. Hint: select it and press Ctrl-K,Ctrl-F in visual studio to fix it :)    (set up VS to use real tabs, preferably 2-space first if you haven't).