Fixed scope of WIN32 variable