Skip to content
Snippets Groups Projects
Commit eeb35656 authored by Michael McCormack's avatar Michael McCormack Committed by Alexandre Julliard
Browse files

Added support for TransmitCommChar.

parent 9ca4285a
No related branches found
No related tags found
No related merge requests found
......@@ -1435,10 +1435,24 @@ BOOL WINAPI TransmitCommChar(
HANDLE hComm, /* [in] The communication device in need of a command character. */
CHAR chTransmit) /* [in] The character to transmit. */
{
FIXME("(%x,'%c'), stub ! Use win32 handle!\n",hComm,chTransmit);
return TRUE;
BOOL r = FALSE;
int fd;
WARN("(%x,'%c') not perfect!\n",hComm,chTransmit);
fd = FILE_GetUnixHandle( hComm, GENERIC_READ );
if ( fd < 0 )
SetLastError ( ERROR_INVALID_PARAMETER );
else
{
r = (1 == write(fd, &chTransmit, 1));
close(fd);
}
return r;
}
/*****************************************************************************
* GetCommTimeouts (KERNEL32.@)
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment