summaryrefslogtreecommitdiff
path: root/plugins/WhoUsesMyFiles/src
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-08-15 16:07:05 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-08-15 16:07:05 +0000
commitc97b20dc06e8d7c848e7ec20590243ffd5f011c4 (patch)
tree278ecd0145c9b67adf92c59fdef67cdcd7b8d6f7 /plugins/WhoUsesMyFiles/src
parent9a245d98a67b303dcbe22664296f18ab327e95b6 (diff)
cosmetics
git-svn-id: http://svn.miranda-ng.org/main/trunk@5704 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WhoUsesMyFiles/src')
-rw-r--r--plugins/WhoUsesMyFiles/src/resource.h5
-rw-r--r--plugins/WhoUsesMyFiles/src/wumfplug.cpp12
2 files changed, 9 insertions, 8 deletions
diff --git a/plugins/WhoUsesMyFiles/src/resource.h b/plugins/WhoUsesMyFiles/src/resource.h
index 6e4cd69615..31191a9918 100644
--- a/plugins/WhoUsesMyFiles/src/resource.h
+++ b/plugins/WhoUsesMyFiles/src/resource.h
@@ -1,6 +1,6 @@
//{{NO_DEPENDENCIES}}
-// Microsoft Developer Studio generated include file.
-// Used by resource.rc
+// Microsoft Visual C++ generated include file.
+// Used by ..\res\resource.rc
//
#define IDD_OPTIONS 101
#define IDI_POPUP 102
@@ -20,7 +20,6 @@
#define IDC_DELAY_SET 1049
#define IDC_DELAY_INF 1050
#define IDC_DELAY_DEF 1051
-#define IDC_DELAY_NOTE 1052
#define IDC_TX_DELAY_SEC 1053
#define IDC_LOG_INTO_FILE 1054
#define IDC_LOG_FOLDER 1055
diff --git a/plugins/WhoUsesMyFiles/src/wumfplug.cpp b/plugins/WhoUsesMyFiles/src/wumfplug.cpp
index f11324e484..36801522fc 100644
--- a/plugins/WhoUsesMyFiles/src/wumfplug.cpp
+++ b/plugins/WhoUsesMyFiles/src/wumfplug.cpp
@@ -27,7 +27,10 @@ void LoadOptions()
dbv.type = DBVT_TCHAR;
ZeroMemory(&WumfOptions, sizeof(WumfOptions));
if (db_get(NULL, MODULENAME, OPT_FILE, &dbv) == 0)
+ {
_tcsncpy(WumfOptions.LogFile, dbv.ptszVal, 255);
+ db_free(&dbv);
+ }
else
WumfOptions.LogFile[0] = '\0';
@@ -44,7 +47,7 @@ void LoadOptions()
WumfOptions.DelayInf = db_get_b(NULL, MODULENAME, DELAY_INF, FALSE);
WumfOptions.DelaySet = db_get_b(NULL, MODULENAME, DELAY_SET, FALSE);
WumfOptions.DelaySec = db_get_b(NULL, MODULENAME, DELAY_SEC, 0);
- if (!ServiceExists(MS_POPUP_ADDPOPUP)) {
+ if (!ServiceExists(MS_POPUP_ADDPOPUPT)) {
WumfOptions.DelayDef = TRUE;
WumfOptions.DelaySet = FALSE;
WumfOptions.DelayInf = FALSE;
@@ -62,7 +65,7 @@ void ExecuteMenu(HWND hWnd)
{
HMENU hMenu = CreatePopupMenu();
if (!hMenu) {
- msg(TranslateT("Error crerating menu"));
+ msg(TranslateT("Error creating menu"));
return;
}
AppendMenu(hMenu, MF_STRING, IDM_ABOUT, _T("About\0"));
@@ -208,7 +211,7 @@ void ThreadProc(LPVOID)
hDlg = NULL;
}
-static INT_PTR WumfShowConnections(WPARAM wParam,LPARAM lParam)
+static INT_PTR WumfShowConnections(WPARAM,LPARAM)
{
mir_forkthread(ThreadProc, NULL);
CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)hWumfBut, TTBST_RELEASED);
@@ -252,7 +255,6 @@ void DisableDelayOptions(HWND hwndDlg)
EnableWindow(GetDlgItem(hwndDlg, IDC_DELAY_DEF), FALSE);
EnableWindow(GetDlgItem(hwndDlg, IDC_DELAY_SEC), FALSE);
EnableWindow(GetDlgItem(hwndDlg, IDC_TX_DELAY_SEC), FALSE);
- EnableWindow(GetDlgItem(hwndDlg, IDC_DELAY_NOTE), TRUE);
}
void ChooseFile(HWND hDlg)
@@ -302,7 +304,7 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg,UINT msg,WPARAM wparam,LPARAM lpara
SendDlgItemMessage(hwndDlg,IDC_COLOR_BACK,CPM_SETCOLOUR,0,WumfOptions.ColorBack);
SendDlgItemMessage(hwndDlg,IDC_COLOR_TEXT,CPM_SETCOLOUR,0,WumfOptions.ColorText);
}
- if ( !ServiceExists(MS_POPUP_ADDPOPUP)) {
+ if ( !ServiceExists(MS_POPUP_ADDPOPUPT)) {
DisableDelayOptions(hwndDlg);
break;
}