summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwishmaster51@gmail.com <wishmaster51@gmail.com@c086bb3d-8645-0410-b8da-73a8550f86e7>2012-08-20 09:58:38 +0000
committerwishmaster51@gmail.com <wishmaster51@gmail.com@c086bb3d-8645-0410-b8da-73a8550f86e7>2012-08-20 09:58:38 +0000
commitd31a884ee112839f07b1609c05331c93976dc3e3 (patch)
tree43a8ea6cb20e8c47868e320df9c84e32f1a353d0
parentf296a083590d5400503f1caaffdf4a26e5ffdafc (diff)
patch by Denis Kurochkin:HEADtrunkmaster
- fixed Unicode x32 build - fixed autofiltering while typing text for x64 git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@258 c086bb3d-8645-0410-b8da-73a8550f86e7
-rw-r--r--Plugins/quickcontacts/quickcontacts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Plugins/quickcontacts/quickcontacts.cpp b/Plugins/quickcontacts/quickcontacts.cpp
index 6f4f853..1288251 100644
--- a/Plugins/quickcontacts/quickcontacts.cpp
+++ b/Plugins/quickcontacts/quickcontacts.cpp
@@ -165,7 +165,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam)
upd.cpbBetaVersionPrefix = strlen((char *)upd.pbBetaVersionPrefix);
#ifdef WIN64
upd.szBetaUpdateURL = "http://pescuma.org/miranda/quickcontacts64.zip";
-#elif
+#elif UNICODE
upd.szBetaUpdateURL = "http://pescuma.org/miranda/quickcontactsW.zip";
#else
upd.szBetaUpdateURL = "http://pescuma.org/miranda/quickcontacts.zip";
@@ -449,7 +449,7 @@ void LoadContacts(HWND hwndDlg, BOOL show_all)
// Read last-sent-to contact from db and set handle as window-userdata
HANDLE hlastsent = (HANDLE)DBGetContactSettingDword(NULL, MODULE_NAME, "LastSentTo", -1);
- SetWindowLong(hwndMain, GWLP_USERDATA, (LONG)hlastsent);
+ SetWindowLongPtr(hwndMain, GWLP_USERDATA, (LONG)hlastsent);
// enumerate all contacts and write them to the array
// item data of listbox-strings is the array position
@@ -914,7 +914,7 @@ static INT_PTR CALLBACK MainDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
// Combo
SendMessage(GetDlgItem(hwndDlg, IDC_USERNAME), EM_LIMITTEXT, (WPARAM)119,0);
- wpEditMainProc = (WNDPROC) SetWindowLong(GetWindow(GetDlgItem(hwndDlg, IDC_USERNAME),GW_CHILD), GWLP_WNDPROC, (LONG)EditProc);
+ wpEditMainProc = (WNDPROC) SetWindowLongPtr(GetWindow(GetDlgItem(hwndDlg, IDC_USERNAME),GW_CHILD), GWLP_WNDPROC, (LONG)EditProc);
// Buttons
FillCheckbox(hwndDlg, IDC_SHOW_ALL_CONTACTS, "Show all contacts", hasNewHotkeyModule ? NULL : "Ctrl+A");