wsock32: Check return value rather than returned size for error.