mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 15:34:13 +00:00
- We want socket closure notification so we don't leak our socket context when the socket is destroyed
- Free socket context in WSHNotify svn path=/trunk/; revision=43154
This commit is contained in:
parent
dc5a52bb5a
commit
6494e99ae8
|
@ -312,7 +312,16 @@ WSHNotify(
|
|||
IN HANDLE TdiConnectionObjectHandle,
|
||||
IN DWORD NotifyEvent)
|
||||
{
|
||||
UNIMPLEMENTED
|
||||
switch (NotifyEvent)
|
||||
{
|
||||
case WSH_NOTIFY_CLOSE:
|
||||
HeapFree(GetProcessHeap(), 0, HelperDllSocketContext);
|
||||
break;
|
||||
|
||||
default:
|
||||
DPRINT1("Unwanted notification received! (%d)\n", NotifyEvent);
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -446,6 +455,7 @@ WSHOpenSocket2(
|
|||
Context->Flags = Flags;
|
||||
|
||||
*HelperDllSocketContext = Context;
|
||||
*NotificationEvents = WSH_NOTIFY_CLOSE;
|
||||
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue