Author: cgutman
Date: Sat Sep 26 03:05:45 2009
New Revision: 43156
URL:
http://svn.reactos.org/svn/reactos?rev=43156&view=rev
Log:
- Add debug prints in failure cases
- Replace 0 with NO_ERROR
Modified:
trunk/reactos/dll/win32/wshtcpip/wshtcpip.c
Modified: trunk/reactos/dll/win32/wshtcpip/wshtcpip.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wshtcpip/wshtcpi…
==============================================================================
--- trunk/reactos/dll/win32/wshtcpip/wshtcpip.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wshtcpip/wshtcpip.c [iso-8859-1] Sat Sep 26 03:05:45 2009
@@ -50,7 +50,7 @@
{
UNIMPLEMENTED
- return 0;
+ return NO_ERROR;
}
@@ -64,7 +64,7 @@
{
UNIMPLEMENTED
- return 0;
+ return NO_ERROR;
}
@@ -78,7 +78,10 @@
DWORD Size = 2 * sizeof(UINT);
if (*SockaddrLength < Size)
+ {
+ DPRINT1("Socket address length too small: %d\n", *SockaddrLength);
return WSAEFAULT;
+ }
RtlZeroMemory(Sockaddr, *SockaddrLength);
@@ -87,7 +90,7 @@
*SockaddrLength = Size;
- return 0;
+ return NO_ERROR;
}
@@ -99,7 +102,7 @@
{
UNIMPLEMENTED
- return 0;
+ return NO_ERROR;
}
@@ -150,7 +153,7 @@
else
SockaddrInfo->EndpointInfo = SockaddrEndpointInfoNormal;
- return 0;
+ return NO_ERROR;
}
@@ -171,7 +174,7 @@
{
UNIMPLEMENTED
- return 0;
+ return NO_ERROR;
}
@@ -185,7 +188,10 @@
DWORD Size = 2 * sizeof(UINT);
if (*SockaddrLength < Size)
+ {
+ DPRINT1("Socket address length too small: %d\n", *SockaddrLength);
return WSAEFAULT;
+ }
RtlZeroMemory(Sockaddr, *SockaddrLength);
@@ -194,7 +200,7 @@
*SockaddrLength = Size;
- return 0;
+ return NO_ERROR;
}
@@ -210,6 +216,7 @@
if (MappingLength < Size)
{
+ DPRINT1("Mapping length too small: %d\n", MappingLength);
return Size;
}
@@ -240,7 +247,7 @@
Mapping->Mapping[5].SocketType = SOCK_RAW;
Mapping->Mapping[5].Protocol = IPPROTO_ICMP;
- return 0;
+ return NO_ERROR;
}
@@ -253,7 +260,7 @@
{
UNIMPLEMENTED
- return 0;
+ return NO_ERROR;
}
@@ -276,7 +283,7 @@
{
UNIMPLEMENTED
- return 0;
+ return NO_ERROR;
}
@@ -299,7 +306,7 @@
{
UNIMPLEMENTED
- return 0;
+ return NO_ERROR;
}
@@ -323,7 +330,7 @@
break;
}
- return 0;
+ return NO_ERROR;
}
@@ -386,7 +393,7 @@
UNICODE_STRING RawDeviceName = RTL_CONSTANT_STRING(DD_RAW_IP_DEVICE_NAME);
NTSTATUS Status;
- DPRINT("");
+ DPRINT("WSHOpenSocket2 called\n");
switch (*SocketType) {
case SOCK_STREAM:
@@ -475,7 +482,7 @@
{
UNIMPLEMENTED
- return 0;
+ return NO_ERROR;
}
@@ -490,7 +497,7 @@
{
UNIMPLEMENTED
- return 0;
+ return NO_ERROR;
}
/* EOF */