Make AsyncData point to the allocated memory instead of overwriting some

random memory locations

svn path=/trunk/; revision=12357
This commit is contained in:
Gé van Geldorp 2004-12-27 10:38:06 +00:00
parent 89ae96ff47
commit 4b48423b86

View file

@ -33,7 +33,7 @@ WSPAsyncSelect(
Socket = GetSocketStructure(Handle);
/* Allocate the Async Data Structure to pass on to the Thread later */
HeapAlloc(GetProcessHeap(), 0, sizeof(*AsyncData));
AsyncData = HeapAlloc(GetProcessHeap(), 0, sizeof(*AsyncData));
/* Change the Socket to Non Blocking */
BlockMode = 1;