mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
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:
parent
848ea5c2e0
commit
1e6fba5a39
4 changed files with 38 additions and 29 deletions
|
@ -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>
|
||||
|
||||
* ntoskrnl/dbg/profile.c (KdbProfilerThreadMain): Make STDCALL.
|
||||
|
|
|
@ -2923,33 +2923,33 @@ typedef OSVERSIONINFOW OSVERSIONINFO;
|
|||
#endif
|
||||
|
||||
typedef struct _OSVERSIONINFOEXA
|
||||
#ifdef __cplusplus
|
||||
: public OSVERSIONINFOA
|
||||
{
|
||||
#else
|
||||
{
|
||||
OSVERSIONINFOA;
|
||||
#endif
|
||||
WORD wServicePackMajor;
|
||||
WORD wServicePackMinor;
|
||||
WORD wSuiteMask;
|
||||
BYTE wProductType;
|
||||
BYTE wReserved;
|
||||
DWORD dwOSVersionInfoSize;
|
||||
DWORD dwMajorVersion;
|
||||
DWORD dwMinorVersion;
|
||||
DWORD dwBuildNumber;
|
||||
DWORD dwPlatformId;
|
||||
CHAR szCSDVersion[ 128 ];
|
||||
WORD wServicePackMajor;
|
||||
WORD wServicePackMinor;
|
||||
WORD wSuiteMask;
|
||||
BYTE wProductType;
|
||||
BYTE wReserved;
|
||||
} OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA;
|
||||
|
||||
typedef struct _OSVERSIONINFOEXW
|
||||
#ifdef __cplusplus
|
||||
: public OSVERSIONINFOW
|
||||
{
|
||||
#else
|
||||
{
|
||||
OSVERSIONINFOW;
|
||||
#endif
|
||||
WORD wServicePackMajor;
|
||||
WORD wServicePackMinor;
|
||||
WORD wSuiteMask;
|
||||
BYTE wProductType;
|
||||
BYTE wReserved;
|
||||
DWORD dwOSVersionInfoSize;
|
||||
DWORD dwMajorVersion;
|
||||
DWORD dwMinorVersion;
|
||||
DWORD dwBuildNumber;
|
||||
DWORD dwPlatformId;
|
||||
WCHAR szCSDVersion[ 128 ];
|
||||
WORD wServicePackMajor;
|
||||
WORD wServicePackMinor;
|
||||
WORD wSuiteMask;
|
||||
BYTE wProductType;
|
||||
BYTE wReserved;
|
||||
} OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW;
|
||||
|
||||
#ifdef UNICODE
|
||||
|
|
|
@ -80,9 +80,9 @@ PWSHELPER_DLL LocateHelperDLL(
|
|||
ListEntry);
|
||||
|
||||
for (i = 0; i < HelperDLL->Mapping->Rows; i++) {
|
||||
if ((lpProtocolInfo->iAddressFamily == HelperDLL->Mapping->Mapping[i].AddressFamily) &&
|
||||
(lpProtocolInfo->iSocketType == HelperDLL->Mapping->Mapping[i].SocketType) &&
|
||||
((lpProtocolInfo->iProtocol == HelperDLL->Mapping->Mapping[i].Protocol) ||
|
||||
if ((lpProtocolInfo->iAddressFamily == (INT) HelperDLL->Mapping->Mapping[i].AddressFamily) &&
|
||||
(lpProtocolInfo->iSocketType == (INT) HelperDLL->Mapping->Mapping[i].SocketType) &&
|
||||
((lpProtocolInfo->iProtocol == (INT) HelperDLL->Mapping->Mapping[i].Protocol) ||
|
||||
(lpProtocolInfo->iSocketType == SOCK_RAW))) {
|
||||
LeaveCriticalSection(&HelperDLLDatabaseLock);
|
||||
AFD_DbgPrint(MAX_TRACE, ("Returning helper DLL at (0x%X).\n", HelperDLL));
|
||||
|
|
|
@ -131,10 +131,10 @@ PCATALOG_ENTRY LocateProvider(
|
|||
ListEntry);
|
||||
|
||||
for (i = 0; i < Provider->Mapping->Rows; i++) {
|
||||
if ((lpProtocolInfo->iAddressFamily == Provider->Mapping->Mapping[i].AddressFamily) &&
|
||||
(lpProtocolInfo->iSocketType == Provider->Mapping->Mapping[i].SocketType) &&
|
||||
((lpProtocolInfo->iProtocol == Provider->Mapping->Mapping[i].Protocol) ||
|
||||
(lpProtocolInfo->iSocketType == SOCK_RAW))) {
|
||||
if ((lpProtocolInfo->iAddressFamily == (INT) Provider->Mapping->Mapping[i].AddressFamily) &&
|
||||
(lpProtocolInfo->iSocketType == (INT) Provider->Mapping->Mapping[i].SocketType) &&
|
||||
((lpProtocolInfo->iProtocol == (INT) Provider->Mapping->Mapping[i].Protocol) ||
|
||||
(lpProtocolInfo->iSocketType == SOCK_RAW))) {
|
||||
//LeaveCriticalSection(&CatalogLock);
|
||||
WS_DbgPrint(MID_TRACE, ("Returning provider at (0x%X).\n", Provider));
|
||||
return Provider;
|
||||
|
|
Loading…
Reference in a new issue