Commit f2163108 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Dumb fixes.

parent cfa977d9
...@@ -391,6 +391,9 @@ INT16 WINAPI OpenComm16(LPCSTR device,UINT16 cbInQueue,UINT16 cbOutQueue) ...@@ -391,6 +391,9 @@ INT16 WINAPI OpenComm16(LPCSTR device,UINT16 cbInQueue,UINT16 cbOutQueue)
TRACE("%s, %d, %d\n", device, cbInQueue, cbOutQueue); TRACE("%s, %d, %d\n", device, cbInQueue, cbOutQueue);
if (strlen(device) < 4)
return IE_BADID;
port = device[3] - '0'; port = device[3] - '0';
if (port-- == 0) if (port-- == 0)
...@@ -1648,15 +1651,13 @@ BOOL WINAPI ClearCommError(INT handle,LPDWORD errors,LPCOMSTAT lpStat) ...@@ -1648,15 +1651,13 @@ BOOL WINAPI ClearCommError(INT handle,LPDWORD errors,LPCOMSTAT lpStat)
if(ioctl(fd, TIOCINQ, &lpStat->cbInQue)) if(ioctl(fd, TIOCINQ, &lpStat->cbInQue))
WARN("ioctl returned error\n"); WARN("ioctl returned error\n");
TRACE("handle %d cbInQue = %ld cbOutQue = %ld\n",
handle, lpStat->cbInQue, lpStat->cbOutQue);
} }
close(fd); close(fd);
TRACE("handle %d cbInQue = %ld cbOutQue = %ld\n",
handle,
lpStat->cbInQue,
lpStat->cbOutQue);
if(errors) if(errors)
*errors = 0; *errors = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment