Fixed some of the issues reported by winapi-check.

23 files changed