windows port: fix uart_receive() under Win32 platform

This commit is contained in:
Romuald Conty 2011-05-10 17:02:33 +00:00
parent d37b917352
commit 2e630f7e0f

View file

@ -151,7 +151,7 @@ uart_receive (serial_port sp, byte_t * pbtRx, const size_t szRx, void * abort_p)
volatile bool * abort_flag_p = (volatile bool *)abort_p;
do {
res = ReadFile (((serial_port_windows *) sp)->hPort, pbtRx + received_bytes_count,
res = ReadFile (((serial_port_windows *) sp)->hPort, pbtRx + dwTotalBytesReceived,
dwBytesToGet,
&dwBytesReceived, NULL);