winsane: Fixed Socket Flush returning signed value as unsigned long
winsane: Fixed buffer being cleared in case no data was written