Declares msre_var *rvar at the beggining of the function

Necessary to fix the build on Win8 VS 2011