Fix for WinApi