Commit in reactos/lib/msafd/misc on MAIN | |||
sndrcv.c | +1 | -1 | 1.16 -> 1.17 |
Make AsyncData point to the allocated memory instead of overwriting some random memory locations
diff -u -r1.16 -r1.17 --- sndrcv.c 11 Dec 2004 14:59:32 -0000 1.16 +++ sndrcv.c 27 Dec 2004 10:38:06 -0000 1.17 @@ -33,7 +33,7 @@
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;