src: modify some code for the warning in win