DWORD allocationSizeForEntityArray = entrySize * MAX_TDI_ENTITIES,
arraySize = entrySize * MAX_TDI_ENTITIES;
- DbgPrint("TdiGetSetOfThings(tcpFile %x,toiClass %x,toiType %x,toiId %x,"
- "teiEntity %x,fixedPart %d,entrySize %d)\n",
- (int)tcpFile,
- (int)toiClass,
- (int)toiType,
- (int)toiId,
- (int)teiEntity,
- (int)fixedPart,
- (int)entrySize );
+ TRACE("TdiGetSetOfThings(tcpFile %x,toiClass %x,toiType %x,toiId %x,"
+ "teiEntity %x,fixedPart %d,entrySize %d)\n",
+ (int)tcpFile,
+ (int)toiClass,
+ (int)toiType,
+ (int)toiId,
+ (int)teiEntity,
+ (int)fixedPart,
+ (int)entrySize );
req.ID.toi_class = toiClass;
req.ID.toi_type = toiType;
#ifdef DBG
/* See debug.h for debug/trace constants */
-DWORD DebugTraceLevel = MIN_TRACE;
+//DWORD DebugTraceLevel = MIN_TRACE;
//DWORD DebugTraceLevel = MAX_TRACE;
//DWORD DebugTraceLevel = DEBUG_ULTRA;
-
+DWORD DebugTraceLevel = 0;
#endif /* DBG */
/* To make the linker happy */
Sleep( timeout->tv_sec * 1000 + (timeout->tv_usec / 1000) );
}
return 0;
- } else {
- WS_DbgPrint(MID_TRACE,("Calling WSPSelect\n"));
+ } else if (Provider->ProcTable.lpWSPSelect) {
+ WS_DbgPrint(MID_TRACE,("Calling WSPSelect:%x\n", Provider->ProcTable.lpWSPSelect));
Count = Provider->ProcTable.lpWSPSelect(
nfds, readfds, writefds, exceptfds, (LPTIMEVAL)timeout, &Errno);
WSASetLastError(Errno);
return SOCKET_ERROR;
}
+ } else {
+ WSASetLastError(WSAEINVAL);
+ return SOCKET_ERROR;
}
return Count;