fix warnings
Merge pull request #8053 from minggo/fix-warning

[ci skip]fix warnings
fix resource path
Merge pull request #8054 from andyque/fixWin32Template

fix resource path