diff options
Diffstat (limited to 'dbeditorpp/deletemodule.cpp')
-rw-r--r-- | dbeditorpp/deletemodule.cpp | 6 |
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 |