diff options
Diffstat (limited to 'plugins/FavContacts/src/contact_cache.cpp')
-rw-r--r-- | plugins/FavContacts/src/contact_cache.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/FavContacts/src/contact_cache.cpp b/plugins/FavContacts/src/contact_cache.cpp index 3fa6b2b6ec..e535738ffb 100644 --- a/plugins/FavContacts/src/contact_cache.cpp +++ b/plugins/FavContacts/src/contact_cache.cpp @@ -66,14 +66,13 @@ CContactCache::CContactCache(): m_cache(50, TContactInfo::cmp) int (__cdecl CContactCache::*pfn)(WPARAM, LPARAM);
pfn = &CContactCache::OnDbEventAdded;
- m_hOnDbEventAdded = HookEventObj(ME_DB_EVENT_ADDED, *(MIRANDAHOOKOBJ *)&pfn, this);
+ HookEventObj(ME_DB_EVENT_ADDED, *(MIRANDAHOOKOBJ *)&pfn, this);
Rebuild();
}
CContactCache::~CContactCache()
{
- UnhookEvent(m_hOnDbEventAdded);
DeleteCriticalSection(&m_cs);
}
|