Fix FromWindowsAttributes