windows: fix GetNameInfoW error handling

GetNameInfoW return non-zero on error, and not vice versa.