From 9e95d1c3e11facd1b9e2db80406900fcfa266131 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Mon, 5 Sep 2011 22:57:49 +0700 Subject: [PATCH] Don't crash when loading python network modules. --- modules/modpython.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/modpython.cpp b/modules/modpython.cpp index 19b8cdeb..478b50e0 100644 --- a/modules/modpython.cpp +++ b/modules/modpython.cpp @@ -140,7 +140,7 @@ public: sArgs.c_str(), (int)eType, (eType == CModInfo::GlobalModule ? Py_None : SWIG_NewInstanceObj(GetUser(), SWIG_TypeQuery("CUser*"), 0)), - (eType == CModInfo::NetworkModule ? SWIG_NewInstanceObj(GetNetwork(), SWIG_TypeQuery("CNetwork*"), 0) : Py_None), + (eType == CModInfo::NetworkModule ? SWIG_NewInstanceObj(GetNetwork(), SWIG_TypeQuery("CIRCNetwork*"), 0) : Py_None), CPyRetString::wrap(sRetMsg), SWIG_NewInstanceObj(reinterpret_cast(this), SWIG_TypeQuery("CModule*"), 0)); if (!pyRes) {