summaryrefslogtreecommitdiff
path: root/src/modules/netlib
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-31 20:07:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-31 20:07:14 +0000
commite5efe5fd9d785eeb68667e84d219ebfa64620c14 (patch)
tree352c7209413ac4cf80d84f20248fff777454c93b /src/modules/netlib
parent6991c4ee6704d77ffaab3300e763d0462c516caa (diff)
- check for NULL values in Netlib_CloseHandle;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@6727 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/netlib')
-rw-r--r--src/modules/netlib/netlib.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/netlib/netlib.cpp b/src/modules/netlib/netlib.cpp
index b6deb4aef6..58cd922864 100644
--- a/src/modules/netlib/netlib.cpp
+++ b/src/modules/netlib/netlib.cpp
@@ -248,6 +248,9 @@ void NetlibDoClose(NetlibConnection *nlc, bool noShutdown)
INT_PTR NetlibCloseHandle(WPARAM wParam, LPARAM)
{
+ if (wParam == NULL)
+ return 0;
+
switch(GetNetlibHandleType((void*)wParam)) {
case NLH_USER:
{