Commit dacdb9c4 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Cosmetics.

parent 895d4f10
......@@ -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);
}
......
/*
* Top level resource file for Common Dialogs
* Top level resource file for shell stuff
*
*/
......
......@@ -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,
......
......@@ -2590,13 +2590,17 @@ INT WINAPI WSOCK32_gethostname(char *name, INT namelen)
{
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;
}
......
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