diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 21:04:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 21:04:18 +0000 |
commit | ec36adde2c033cdf5129c9686ed89069c38896aa (patch) | |
tree | 5454df2b692bc0e1db96a13259fd8e76667c4e42 /plugins/RecentContacts/RecentContacts.cpp | |
parent | 66a8f7144e3b7fd0a42f197b0d20c2bd6f86c74b (diff) |
another portion of fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@272 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/RecentContacts/RecentContacts.cpp')
-rw-r--r-- | plugins/RecentContacts/RecentContacts.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/RecentContacts/RecentContacts.cpp b/plugins/RecentContacts/RecentContacts.cpp index 9ec3eb0f04..1303178fd2 100644 --- a/plugins/RecentContacts/RecentContacts.cpp +++ b/plugins/RecentContacts/RecentContacts.cpp @@ -25,7 +25,8 @@ HANDLE hMenuItemRemove = NULL; HANDLE hOptInitialise = NULL;
HANDLE hContactSetting = NULL;
-LIST<void> ServiceList(10,0), HookList(10,0);
+const INT_PTR boo = 0;
+LIST<void> ServiceList(10,boo), HookList(10,boo);
BOOL IsMessageAPI = FALSE;
@@ -178,11 +179,11 @@ void wfree(char **Data) HWND hwndContactTree = NULL;
-BOOL WINAPI ShowListMainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+LRESULT WINAPI ShowListMainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
LASTUC_DLG_DATA *DlgDat;
- DlgDat = (LASTUC_DLG_DATA *)GetWindowLong(hDlg, GWL_USERDATA);
+ DlgDat = (LASTUC_DLG_DATA *)GetWindowLong(hDlg, GWLP_USERDATA);
HWND hList = GetDlgItem(hDlg, IDC_CONTACTS_LIST);
if (hList == NULL)
return FALSE;
@@ -212,7 +213,7 @@ BOOL WINAPI ShowListMainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lPara ScreenToClient(hDlg, &p);
DlgDat->ListUCRect.right = p.x;
DlgDat->ListUCRect.bottom = p.y;
- SetWindowLong(hDlg, GWL_USERDATA, (LONG)DlgDat);
+ SetWindowLong(hDlg, GWLP_USERDATA, (LONG)DlgDat);
//set listview styles
ListView_SetExtendedListViewStyleEx(hList,
@@ -385,7 +386,7 @@ BOOL WINAPI ShowListMainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lPara return FALSE;
}
-int OnMenuCommandShowList(WPARAM wParam, LPARAM lParam)
+INT_PTR OnMenuCommandShowList(WPARAM wParam, LPARAM lParam)
{
cmultimap *contacts = new cmultimap;
@@ -572,7 +573,7 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) update.cbSize = sizeof(Update);
update.szComponentName = pluginInfo.shortName;
update.pbVersion = (BYTE *)CreateVersionString(pluginInfo.version, szVersion);
- update.cpbVersion = strlen((char *)update.pbVersion);
+ update.cpbVersion = (int)strlen((char *)update.pbVersion);
update.szUpdateURL = UPDATER_AUTOREGISTER;
@@ -584,7 +585,7 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) update.szBetaVersionURL = "http://kildor.miranda.im/miranda/recentcontacts.txt";
update.szBetaChangelogURL = "http://kildor.miranda.im/miranda/recentcontacts_changes.txt";
update.pbBetaVersionPrefix = (BYTE *)"RecentContacts ";
- update.cpbBetaVersionPrefix = strlen((char *)update.pbBetaVersionPrefix);
+ update.cpbBetaVersionPrefix = (int)strlen((char *)update.pbBetaVersionPrefix);
CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update);
}
@@ -631,7 +632,7 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) return 0;
}
-int ToggleIgnore (WPARAM wParam, LPARAM lParam)
+INT_PTR ToggleIgnore (WPARAM wParam, LPARAM lParam)
{
if (wParam != NULL) {
HANDLE hContact = ( HANDLE )wParam;
|