From 2ebb53adcd4663ac2f1da74972b7b21d53b0ce53 Mon Sep 17 00:00:00 2001 From: "george.hazan" Date: Thu, 26 May 2011 20:18:42 +0000 Subject: patch for dbeditorpp: C++ support, other improvements git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@122 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- dbeditorpp/deletemodule.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dbeditorpp/deletemodule.cpp') 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 -- cgit v1.2.3