diff options
-rw-r--r-- | plugins/Variables/src/contact.cpp | 2 | ||||
-rw-r--r-- | plugins/Variables/src/stdafx.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Variables/src/contact.cpp b/plugins/Variables/src/contact.cpp index 65c924a4c3..411df6581b 100644 --- a/plugins/Variables/src/contact.cpp +++ b/plugins/Variables/src/contact.cpp @@ -284,7 +284,7 @@ MCONTACT getContactFromString(const wchar_t *tszContact, DWORD dwFlags, int nMat // return random contact
if (nMatch == -1)
- return (MCONTACT)arResults[rand() % arResults.getCount()];
+ return (UINT_PTR)arResults[rand() % arResults.getCount()];
// cache the found result
if (count == 0) {
diff --git a/plugins/Variables/src/stdafx.h b/plugins/Variables/src/stdafx.h index fe34079aa6..eafbd6c219 100644 --- a/plugins/Variables/src/stdafx.h +++ b/plugins/Variables/src/stdafx.h @@ -42,6 +42,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include <m_options.h>
#include <m_icolib.h>
#include <m_clc.h>
+#include <m_netlib.h>
#include <m_metacontacts.h>
#include <m_timezones.h>
|