summaryrefslogtreecommitdiff
path: root/dbeditorpp/modules.cpp
diff options
context:
space:
mode:
authorgeorge.hazan <george.hazan@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-05-26 20:18:42 +0000
committergeorge.hazan <george.hazan@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-05-26 20:18:42 +0000
commit2ebb53adcd4663ac2f1da74972b7b21d53b0ce53 (patch)
tree0c11a849c6bd2cff094017e8de6895a54363c586 /dbeditorpp/modules.cpp
parent4b6195fe205b03838ce334893e1141bf43f9fc6d (diff)
patch for dbeditorpp: C++ support, other improvements
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@122 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'dbeditorpp/modules.cpp')
-rw-r--r--dbeditorpp/modules.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbeditorpp/modules.cpp b/dbeditorpp/modules.cpp
index bfaff6e..4053180 100644
--- a/dbeditorpp/modules.cpp
+++ b/dbeditorpp/modules.cpp
@@ -44,11 +44,11 @@ void renameModule(char* oldName, char* newName, HANDLE hContact)
FreeModuleSettingLL(&settinglist);
}
-BOOL CALLBACK AddModDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
+INT_PTR CALLBACK AddModDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
if (msg == WM_INITDIALOG)
{
- SetWindowLong(hwnd,GWL_USERDATA,lParam);
+ SetWindowLongPtr(hwnd,GWLP_USERDATA,lParam);
TranslateDialogDefault(hwnd);
}
if (msg == WM_COMMAND)
@@ -74,7 +74,7 @@ BOOL CALLBACK AddModDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
}
else
{
- DBWriteContactSettingByte((HANDLE)GetWindowLong(hwnd,GWL_USERDATA), modulename, "(Default)", 0);
+ DBWriteContactSettingByte((HANDLE)GetWindowLongPtr(hwnd,GWLP_USERDATA), modulename, "(Default)", 0);
}
refreshTree(1);
}