Cosmetics.

This commit is contained in:
Andreas Mohr 2001-02-14 00:29:16 +00:00 committed by Alexandre Julliard
parent 895d4f109e
commit dacdb9c4c6
4 changed files with 13 additions and 9 deletions

View File

@ -522,7 +522,7 @@ INT16 WINAPI OpenComm16(LPCSTR device,UINT16 cbInQueue,UINT16 cbOutQueue)
COM[port].xmit = -1;
/* allocate buffers */
COM[port].ibuf_size = cbInQueue;
COM[port].ibuf_head = COM[port].ibuf_tail= 0;
COM[port].ibuf_head = COM[port].ibuf_tail = 0;
COM[port].obuf_size = cbOutQueue;
COM[port].obuf_head = COM[port].obuf_tail = 0;
@ -807,7 +807,7 @@ INT16 WINAPI GetCommError16(INT16 cid,LPCOMSTAT16 lpStat)
lpStat->cbOutQue = comm_outbuf(ptr);
lpStat->cbInQue = comm_inbuf(ptr);
TRACE("cid %d, error %d, lpStat %d %d %d stol %x\n",
TRACE("cid %d, error %d, stat %d in %d out %d, stol %x\n",
cid, ptr->commerror, lpStat->status, lpStat->cbInQue,
lpStat->cbOutQue, *stol);
}

View File

@ -1,5 +1,5 @@
/*
* Top level resource file for Common Dialogs
* Top level resource file for shell stuff
*
*/

View File

@ -3838,7 +3838,7 @@ UINT16 WINAPI waveOutOpen16(HWAVEOUT16* lphWaveOut, UINT16 uDeviceID,
HWAVEOUT hWaveOut;
UINT ret;
/* since layout of WAVEOFORMATEX is the same for 16/32 bits, we directly
/* since layout of WAVEFORMATEX is the same for 16/32 bits, we directly
* call the 32 bit version
*/
ret = MMSYSTEM_waveOpen(&hWaveOut, uDeviceID, MMDRV_WAVEOUT, lpFormat,
@ -4479,7 +4479,7 @@ UINT16 WINAPI waveInOpen16(HWAVEIN16* lphWaveIn, UINT16 uDeviceID,
HWAVEIN hWaveIn;
UINT ret;
/* since layout of WAVEOFORMATEX is the same for 16/32 bits, we directly
/* since layout of WAVEFORMATEX is the same for 16/32 bits, we directly
* call the 32 bit version
*/
ret = MMSYSTEM_waveOpen(&hWaveIn, uDeviceID, MMDRV_WAVEIN, lpFormat,

View File

@ -2588,15 +2588,19 @@ WIN_servent* WINAPI WSOCK32_getservbyport(INT port, const char *proto)
*/
INT WINAPI WSOCK32_gethostname(char *name, INT namelen)
{
LPWSINFO pwsi = WINSOCK_GetIData();
LPWSINFO pwsi = WINSOCK_GetIData();
TRACE("(%08x): name %s, len %d\n",
(unsigned)pwsi, (name)?name:NULL_STRING, namelen);
TRACE("(%08x): name %p, len %d\n", (unsigned)pwsi, name, namelen);
if( pwsi )
{
if (gethostname(name, namelen) == 0) return 0;
if (gethostname(name, namelen) == 0)
{
TRACE("<- '%s'\n", name);
return 0;
}
SetLastError((errno == EINVAL) ? WSAEFAULT : wsaErrno());
}
TRACE("<- ERROR !\n");
return SOCKET_ERROR;
}