Aric Stewart : wininet: Be sure to set lpwfs-> pasvSocket to -1 when closing the socket to prevent double closes.