mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Don't allow ws2_32 access to apps with bad setup data
(commit correct version this time) svn path=/trunk/; revision=23596
This commit is contained in:
@@ -28,6 +28,7 @@ unsigned long strtoul(const char *nptr, char **endptr, int base);
|
||||
|
||||
#define EXPORT STDCALL
|
||||
|
||||
extern HINSTANCE g_hInstDll;
|
||||
extern HANDLE GlobalHeap;
|
||||
extern BOOL WsaInitialized; /* TRUE if WSAStartup() has been successfully called */
|
||||
extern WSPUPCALLTABLE UpcallTable;
|
||||
|
||||
@@ -27,7 +27,7 @@ DWORD DebugTraceLevel = 0;
|
||||
/* To make the linker happy */
|
||||
VOID STDCALL KeBugCheck (ULONG BugCheckCode) {}
|
||||
|
||||
|
||||
HINSTANCE g_hInstDll;
|
||||
HANDLE GlobalHeap;
|
||||
BOOL WsaInitialized = FALSE; /* TRUE if WSAStartup() has been successfully called */
|
||||
WSPUPCALLTABLE UpcallTable;
|
||||
@@ -86,8 +86,8 @@ WSAStartup(IN WORD wVersionRequested,
|
||||
if (lpWSAData == NULL)
|
||||
return WSAEFAULT;
|
||||
|
||||
Low = LOWBYTE(wVersionRequested);
|
||||
High = HIGHBYTE(wVersionRequested);
|
||||
Low = LOBYTE(wVersionRequested);
|
||||
High = HIBYTE(wVersionRequested);
|
||||
|
||||
if (Low < 1)
|
||||
{
|
||||
@@ -841,6 +841,8 @@ DllMain(HANDLE hInstDll,
|
||||
{
|
||||
GlobalHeap = GetProcessHeap();
|
||||
|
||||
g_hInstDll = hInstDll;
|
||||
|
||||
CreateCatalog();
|
||||
|
||||
InitProviderHandleTable();
|
||||
|
||||
Reference in New Issue
Block a user