From 55b5cf8a5506f03350e5c80ac86f5717425e4d10 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 15 Jun 2012 18:24:27 +0000 Subject: Version files added x64 warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@433 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ExtraIcons/options.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/ExtraIcons/options.cpp') diff --git a/plugins/ExtraIcons/options.cpp b/plugins/ExtraIcons/options.cpp index 64d98e686e..1d325d0e87 100644 --- a/plugins/ExtraIcons/options.cpp +++ b/plugins/ExtraIcons/options.cpp @@ -545,7 +545,7 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP sort.lpfnCompare = CompareFunc; TreeView_SortChildrenCB(tree, &sort, 0); - origTreeProc = (WNDPROC) SetWindowLongPtr(tree, -4, (INT_PTR)TreeProc); + origTreeProc = (WNDPROC) SetWindowLongPtr(tree, GWLP_WNDPROC, (INT_PTR)TreeProc); return TRUE; } @@ -642,14 +642,14 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP } CallService(MS_DB_MODULE_DELETE, 0, (LPARAM) MODULE_NAME "Groups"); - DBWriteContactSettingWord(NULL, MODULE_NAME "Groups", "Count", groups.size()); + DBWriteContactSettingWord(NULL, MODULE_NAME "Groups", "Count", (WORD)groups.size()); for (i = 0; i < groups.size(); ++i) { ExtraIconGroup *group = groups[i]; char setting[512]; mir_snprintf(setting, MAX_REGS(setting), "%d_count", i); - DBWriteContactSettingWord(NULL, MODULE_NAME "Groups", setting, group->items.size()); + DBWriteContactSettingWord(NULL, MODULE_NAME "Groups", setting, (WORD)group->items.size()); for (unsigned int j = 0; j < group->items.size(); ++j) { -- cgit v1.2.3