Fix some problems found by winapi_check.

4 files changed