From 878d72910cccf4f84c7cb45bb4c11134920f3166 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 18 Aug 2015 11:49:54 +0000 Subject: - naming conflict; - warning fixes; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14988 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WhoUsesMyFiles/src/wumfplug.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/WhoUsesMyFiles/src') diff --git a/plugins/WhoUsesMyFiles/src/wumfplug.cpp b/plugins/WhoUsesMyFiles/src/wumfplug.cpp index d5f2df0051..f2fb9c2ad7 100644 --- a/plugins/WhoUsesMyFiles/src/wumfplug.cpp +++ b/plugins/WhoUsesMyFiles/src/wumfplug.cpp @@ -250,14 +250,14 @@ void DisableDelayOptions(HWND hwndDlg) EnableWindow(GetDlgItem(hwndDlg, IDC_TX_DELAY_SEC), FALSE); } -void ChooseFile(HWND hDlg) +void ChooseFile(HWND hwndDlg) { TCHAR szFile[MAX_PATH]; szFile[0]=0; // Initialize OPENFILENAME OPENFILENAME ofn = {0}; // common dialog box structure ofn.lStructSize = sizeof(OPENFILENAME); - ofn.hwndOwner = hDlg; + ofn.hwndOwner = hwndDlg; ofn.lpstrFile = szFile; ofn.nMaxFile = _countof(szFile); ofn.lpstrFilter = _T("All files (*.*)\0*.*\0Text files (*.txt)\0*.txt\0Log files (*.log)\0*.log\0\0"); @@ -267,7 +267,7 @@ void ChooseFile(HWND hDlg) if (GetSaveFileName(&ofn)) { HANDLE hf = CreateFile(szFile,GENERIC_WRITE,0,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL, NULL); if (hf != INVALID_HANDLE_VALUE) { - SetDlgItemText(hDlg,IDC_FILE,szFile); + SetDlgItemText(hwndDlg,IDC_FILE,szFile); mir_tstrncpy(WumfOptions.LogFile, szFile, MAX_PATH); CloseHandle(hf); } @@ -275,7 +275,7 @@ void ChooseFile(HWND hDlg) else if (CommDlgExtendedError() != 0) { TCHAR str[256]; mir_sntprintf(str, _countof(str), TranslateT("Common Dialog Error 0x%lx"), CommDlgExtendedError()); - MessageBox(hDlg, str, TranslateT("Error"), MB_OK | MB_ICONSTOP); + MessageBox(hwndDlg, str, TranslateT("Error"), MB_OK | MB_ICONSTOP); } } -- cgit v1.2.3