2003-02-10 Casper S. Hornstrup <chorns@users.sourceforge.net>

* include/structs.h (OSVERSIONINFOEXA): Expand definition of
	OSVERSIONINFOA.
	(OSVERSIONINFOEXW): Expand definition of OSVERSIONINFOW.
	* lib/msafd/misc/helpers.c (LocateHelperDLL): Cast AddressFamily,
	SocketType, and Protocol to INT.
	* lib/ws2_32/misc/catalog.c (LocateProvider): Ditto.

svn path=/trunk/; revision=4135
This commit is contained in:
Casper Hornstrup 2003-02-10 21:29:41 +00:00
parent 848ea5c2e0
commit 1e6fba5a39
4 changed files with 38 additions and 29 deletions

View file

@ -1,3 +1,12 @@
2003-02-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/structs.h (OSVERSIONINFOEXA): Expand definition of
OSVERSIONINFOA.
(OSVERSIONINFOEXW): Expand definition of OSVERSIONINFOW.
* lib/msafd/misc/helpers.c (LocateHelperDLL): Cast AddressFamily,
SocketType, and Protocol to INT.
* lib/ws2_32/misc/catalog.c (LocateProvider): Ditto.
2003-01-16 Casper S. Hornstrup <chorns@users.sourceforge.net> 2003-01-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
* ntoskrnl/dbg/profile.c (KdbProfilerThreadMain): Make STDCALL. * ntoskrnl/dbg/profile.c (KdbProfilerThreadMain): Make STDCALL.

View file

@ -2923,13 +2923,13 @@ typedef OSVERSIONINFOW OSVERSIONINFO;
#endif #endif
typedef struct _OSVERSIONINFOEXA typedef struct _OSVERSIONINFOEXA
#ifdef __cplusplus
: public OSVERSIONINFOA
{ {
#else DWORD dwOSVersionInfoSize;
{ DWORD dwMajorVersion;
OSVERSIONINFOA; DWORD dwMinorVersion;
#endif DWORD dwBuildNumber;
DWORD dwPlatformId;
CHAR szCSDVersion[ 128 ];
WORD wServicePackMajor; WORD wServicePackMajor;
WORD wServicePackMinor; WORD wServicePackMinor;
WORD wSuiteMask; WORD wSuiteMask;
@ -2938,13 +2938,13 @@ typedef struct _OSVERSIONINFOEXA
} OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA; } OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA;
typedef struct _OSVERSIONINFOEXW typedef struct _OSVERSIONINFOEXW
#ifdef __cplusplus
: public OSVERSIONINFOW
{ {
#else DWORD dwOSVersionInfoSize;
{ DWORD dwMajorVersion;
OSVERSIONINFOW; DWORD dwMinorVersion;
#endif DWORD dwBuildNumber;
DWORD dwPlatformId;
WCHAR szCSDVersion[ 128 ];
WORD wServicePackMajor; WORD wServicePackMajor;
WORD wServicePackMinor; WORD wServicePackMinor;
WORD wSuiteMask; WORD wSuiteMask;

View file

@ -80,9 +80,9 @@ PWSHELPER_DLL LocateHelperDLL(
ListEntry); ListEntry);
for (i = 0; i < HelperDLL->Mapping->Rows; i++) { for (i = 0; i < HelperDLL->Mapping->Rows; i++) {
if ((lpProtocolInfo->iAddressFamily == HelperDLL->Mapping->Mapping[i].AddressFamily) && if ((lpProtocolInfo->iAddressFamily == (INT) HelperDLL->Mapping->Mapping[i].AddressFamily) &&
(lpProtocolInfo->iSocketType == HelperDLL->Mapping->Mapping[i].SocketType) && (lpProtocolInfo->iSocketType == (INT) HelperDLL->Mapping->Mapping[i].SocketType) &&
((lpProtocolInfo->iProtocol == HelperDLL->Mapping->Mapping[i].Protocol) || ((lpProtocolInfo->iProtocol == (INT) HelperDLL->Mapping->Mapping[i].Protocol) ||
(lpProtocolInfo->iSocketType == SOCK_RAW))) { (lpProtocolInfo->iSocketType == SOCK_RAW))) {
LeaveCriticalSection(&HelperDLLDatabaseLock); LeaveCriticalSection(&HelperDLLDatabaseLock);
AFD_DbgPrint(MAX_TRACE, ("Returning helper DLL at (0x%X).\n", HelperDLL)); AFD_DbgPrint(MAX_TRACE, ("Returning helper DLL at (0x%X).\n", HelperDLL));

View file

@ -131,9 +131,9 @@ PCATALOG_ENTRY LocateProvider(
ListEntry); ListEntry);
for (i = 0; i < Provider->Mapping->Rows; i++) { for (i = 0; i < Provider->Mapping->Rows; i++) {
if ((lpProtocolInfo->iAddressFamily == Provider->Mapping->Mapping[i].AddressFamily) && if ((lpProtocolInfo->iAddressFamily == (INT) Provider->Mapping->Mapping[i].AddressFamily) &&
(lpProtocolInfo->iSocketType == Provider->Mapping->Mapping[i].SocketType) && (lpProtocolInfo->iSocketType == (INT) Provider->Mapping->Mapping[i].SocketType) &&
((lpProtocolInfo->iProtocol == Provider->Mapping->Mapping[i].Protocol) || ((lpProtocolInfo->iProtocol == (INT) Provider->Mapping->Mapping[i].Protocol) ||
(lpProtocolInfo->iSocketType == SOCK_RAW))) { (lpProtocolInfo->iSocketType == SOCK_RAW))) {
//LeaveCriticalSection(&CatalogLock); //LeaveCriticalSection(&CatalogLock);
WS_DbgPrint(MID_TRACE, ("Returning provider at (0x%X).\n", Provider)); WS_DbgPrint(MID_TRACE, ("Returning provider at (0x%X).\n", Provider));