fix compile error
Merge pull request #8005 from andyque/fixWin32CompileError

fix compile error