projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc5a52b
)
- We want socket closure notification so we don't leak our socket context when the...
author
Cameron Gutman
<aicommander@gmail.com>
Fri, 25 Sep 2009 23:44:51 +0000
(23:44 +0000)
committer
Cameron Gutman
<aicommander@gmail.com>
Fri, 25 Sep 2009 23:44:51 +0000
(23:44 +0000)
- Free socket context in WSHNotify
svn path=/trunk/; revision=43154
reactos/dll/win32/wshtcpip/wshtcpip.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/wshtcpip/wshtcpip.c
b/reactos/dll/win32/wshtcpip/wshtcpip.c
index
b13fabc
..
bc3fcee
100644
(file)
--- a/
reactos/dll/win32/wshtcpip/wshtcpip.c
+++ b/
reactos/dll/win32/wshtcpip/wshtcpip.c
@@
-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;
}