summaryrefslogtreecommitdiff
path: root/dbeditorpp/deletemodule.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/deletemodule.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/deletemodule.cpp')
-rw-r--r--dbeditorpp/deletemodule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbeditorpp/deletemodule.cpp b/dbeditorpp/deletemodule.cpp
index 566a0cf..a0eddf7 100644
--- a/dbeditorpp/deletemodule.cpp
+++ b/dbeditorpp/deletemodule.cpp
@@ -13,7 +13,7 @@ int deleteModule(char* module, HANDLE hContact, int fromMenu)
if (!fromMenu)
{
- mir_snprintf(msg, 1024, Translate("Are you sure you want to delete module \"%s\"?"), module);
+ mir_snprintf(msg, SIZEOF(msg), Translate("Are you sure you want to delete module \"%s\"?"), module);
if (DBGetContactSettingByte(NULL,modname, "WarnOnDelete",1))
{
if (MessageBox(0,msg, Translate("Confirm Module Deletion"), MB_YESNO|MB_ICONEXCLAMATION) == IDNO)
@@ -79,7 +79,7 @@ void __cdecl PopulateModuleDropListThreadFunc(LPVOID di)
working = 2;
}
-BOOL CALLBACK DeleteModuleDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
+INT_PTR CALLBACK DeleteModuleDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch(msg)
{
@@ -142,7 +142,7 @@ BOOL CALLBACK DeleteModuleDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
void deleteModuleGui()
{
if (!hwnd2Delete)
- hwnd2Delete = CreateDialogParam(hInst,MAKEINTRESOURCE(IDD_COPY_MOD),hwnd2mainWindow,DeleteModuleDlgProc, (LPARAM)0);
+ hwnd2Delete = CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_COPY_MOD), hwnd2mainWindow, DeleteModuleDlgProc, (LPARAM)0);
else
SetForegroundWindow(hwnd2Delete);
} \ No newline at end of file