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) ...@@ -522,7 +522,7 @@ INT16 WINAPI OpenComm16(LPCSTR device,UINT16 cbInQueue,UINT16 cbOutQueue)
COM[port].xmit = -1; COM[port].xmit = -1;
/* allocate buffers */ /* allocate buffers */
COM[port].ibuf_size = cbInQueue; 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_size = cbOutQueue;
COM[port].obuf_head = COM[port].obuf_tail = 0; COM[port].obuf_head = COM[port].obuf_tail = 0;
...@@ -807,7 +807,7 @@ INT16 WINAPI GetCommError16(INT16 cid,LPCOMSTAT16 lpStat) ...@@ -807,7 +807,7 @@ INT16 WINAPI GetCommError16(INT16 cid,LPCOMSTAT16 lpStat)
lpStat->cbOutQue = comm_outbuf(ptr); lpStat->cbOutQue = comm_outbuf(ptr);
lpStat->cbInQue = comm_inbuf(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, cid, ptr->commerror, lpStat->status, lpStat->cbInQue,
lpStat->cbOutQue, *stol); 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, ...@@ -3838,7 +3838,7 @@ UINT16 WINAPI waveOutOpen16(HWAVEOUT16* lphWaveOut, UINT16 uDeviceID,
HWAVEOUT hWaveOut; HWAVEOUT hWaveOut;
UINT ret; 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 * call the 32 bit version
*/ */
ret = MMSYSTEM_waveOpen(&hWaveOut, uDeviceID, MMDRV_WAVEOUT, lpFormat, ret = MMSYSTEM_waveOpen(&hWaveOut, uDeviceID, MMDRV_WAVEOUT, lpFormat,
...@@ -4479,7 +4479,7 @@ UINT16 WINAPI waveInOpen16(HWAVEIN16* lphWaveIn, UINT16 uDeviceID, ...@@ -4479,7 +4479,7 @@ UINT16 WINAPI waveInOpen16(HWAVEIN16* lphWaveIn, UINT16 uDeviceID,
HWAVEIN hWaveIn; HWAVEIN hWaveIn;
UINT ret; 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 * call the 32 bit version
*/ */
ret = MMSYSTEM_waveOpen(&hWaveIn, uDeviceID, MMDRV_WAVEIN, lpFormat, ret = MMSYSTEM_waveOpen(&hWaveIn, uDeviceID, MMDRV_WAVEIN, lpFormat,
......
...@@ -2588,15 +2588,19 @@ WIN_servent* WINAPI WSOCK32_getservbyport(INT port, const char *proto) ...@@ -2588,15 +2588,19 @@ WIN_servent* WINAPI WSOCK32_getservbyport(INT port, const char *proto)
*/ */
INT WINAPI WSOCK32_gethostname(char *name, INT namelen) INT WINAPI WSOCK32_gethostname(char *name, INT namelen)
{ {
LPWSINFO pwsi = WINSOCK_GetIData(); LPWSINFO pwsi = WINSOCK_GetIData();
TRACE("(%08x): name %s, len %d\n", TRACE("(%08x): name %p, len %d\n", (unsigned)pwsi, name, namelen);
(unsigned)pwsi, (name)?name:NULL_STRING, namelen);
if( pwsi ) 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()); SetLastError((errno == EINVAL) ? WSAEFAULT : wsaErrno());
} }
TRACE("<- ERROR !\n");
return SOCKET_ERROR; 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