fix the callings of uart_buf_main for win32