Fixed issues found by winapi_check.

5 files changed