Small fix to win API