Small WinApi fix