diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-03 19:44:57 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-03 19:44:57 +0000 |
commit | 50eb80e6116dda8fb97da91146092328d0950622 (patch) | |
tree | e88d09c8a73fa12dc990bb6bb4fac89388cfa8b9 /plugins/ContactsPlus | |
parent | 85b303dbbb3adf8bd060985ff3e0e5956e8a5cb9 (diff) |
removed the Unicode core verification
git-svn-id: http://svn.miranda-ng.org/main/trunk@1342 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ContactsPlus')
-rw-r--r-- | plugins/ContactsPlus/src/main.cpp | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/plugins/ContactsPlus/src/main.cpp b/plugins/ContactsPlus/src/main.cpp index a053bb26cf..f115e79b2b 100644 --- a/plugins/ContactsPlus/src/main.cpp +++ b/plugins/ContactsPlus/src/main.cpp @@ -1,20 +1,20 @@ // --------------------------------------------------------------------------
// Contacts+ for Miranda Instant Messenger
// _______________________________________
-//
-// Copyright © 2002 Dominus Procellarum
+//
+// Copyright © 2002 Dominus Procellarum
// Copyright © 2004-2008 Joe Kucera
-//
+//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
-//
+//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
-//
+//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -113,15 +113,15 @@ static void ProcessUnreadEvents(void) dbei.cbSize = sizeof(dbei);
hContact = SRCFindFirstContact();
- while (hContact)
+ while (hContact)
{
hDbEvent = (HANDLE)CallService(MS_DB_EVENT_FINDFIRSTUNREAD,(WPARAM)hContact,0);
- while (hDbEvent)
+ while (hDbEvent)
{
dbei.cbBlob=0;
CallService(MS_DB_EVENT_GET,(WPARAM)hDbEvent,(LPARAM)&dbei);
- if (!(dbei.flags&(DBEF_SENT|DBEF_READ)) && dbei.eventType==EVENTTYPE_CONTACTS)
+ if (!(dbei.flags&(DBEF_SENT|DBEF_READ)) && dbei.eventType==EVENTTYPE_CONTACTS)
{ //process the event
HookDBEventAdded((WPARAM)hContact, (LPARAM)hDbEvent);
}
@@ -196,7 +196,7 @@ static int HookModulesLoaded(WPARAM wParam, LPARAM lParam) mi.flags = CMIF_KEEPUNTRANSLATED;
if (g_UnicodeCore)
mi.flags |= CMIF_UNICODE;
- mi.pszService = MS_CONTACTS_SEND;
+ mi.pszService = MS_CONTACTS_SEND;
mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_CONTACTS));
hContactMenuItem = Menu_AddContactMenuItem(&mi);
@@ -229,7 +229,7 @@ static int HookContactDeleted(WPARAM wParam, LPARAM lParam) { // if our contact gets deleted close his window
HWND h = WindowList_Find(ghSendWindowList,(HANDLE)wParam);
- if (h)
+ if (h)
{
SendMessageT(h,WM_CLOSE,0,0);
}
@@ -269,7 +269,7 @@ static INT_PTR ServiceReceiveCommand(WPARAM wParam, LPARAM lParam) extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- return &pluginInfo;
+ return &pluginInfo;
}
extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_SRCONTACTS, MIID_LAST};
@@ -280,13 +280,8 @@ extern "C" __declspec(dllexport) int Load(void) InitCommonControls();
InitI18N();
- { // Are we running under unicode Miranda core ?
- char szVer[MAX_PATH];
+ g_UnicodeCore = true;
- CallService(MS_SYSTEM_GETVERSIONTEXT, MAX_PATH, (LPARAM)szVer);
- _strlwr(szVer);
- g_UnicodeCore = (strstr(szVer, "unicode") != NULL);
- }
//init hooks
hHookModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, HookModulesLoaded);
hHookDBEventAdded = HookEvent(ME_DB_EVENT_ADDED, HookDBEventAdded);
|