Fixed function call in Windows.