summaryrefslogtreecommitdiff
path: root/plugins/ContextHelp/src/helpdlg.cpp
diff options
context:
space:
mode:
authorGoraf <goraf@miranda-ng.org>2016-02-09 16:00:09 +0000
committerGoraf <goraf@miranda-ng.org>2016-02-09 16:00:09 +0000
commitd49739f87dd347d6a560dd834788b74cf520b931 (patch)
tree02d0f5c6f6846f7a48234ed26bc65e421e407d80 /plugins/ContextHelp/src/helpdlg.cpp
parentfd8fdaa7ade16132fd3f23db5b0727e3615038ad (diff)
ContextHelp: revert of accidentally lowercased SIZEOF()
git-svn-id: http://svn.miranda-ng.org/main/trunk@16251 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ContextHelp/src/helpdlg.cpp')
-rw-r--r--plugins/ContextHelp/src/helpdlg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ContextHelp/src/helpdlg.cpp b/plugins/ContextHelp/src/helpdlg.cpp
index 47692e128c..38ee716452 100644
--- a/plugins/ContextHelp/src/helpdlg.cpp
+++ b/plugins/ContextHelp/src/helpdlg.cpp
@@ -333,7 +333,7 @@ INT_PTR CALLBACK HelpDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara
TCHAR text[1024];
char *szModule, *szDlgId;
- GetControlTitle(hwndCtl, text, sizeof(text));
+ GetControlTitle(hwndCtl, text, _countof(text));
SetDlgItemText(hwndDlg, IDC_CTLTEXT, text);
mir_sntprintf(text, sizeof(text), TranslateT("Control ID: %d"), GetControlID(hwndCtl));
SetDlgItemText(hwndDlg, IDC_CTLID, text);
@@ -368,7 +368,7 @@ INT_PTR CALLBACK HelpDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara
EnableWindow(GetDlgItem(hwndDlg, IDC_TEXT), TRUE);
{
TCHAR text[2024];
- GetControlTitle(hwndCtl, text, sizeof(text));
+ GetControlTitle(hwndCtl, text, _countof(text));
SetDlgItemText(hwndDlg, IDC_CTLTEXT, text);
}
#else
@@ -568,7 +568,7 @@ INT_PTR CALLBACK HelpDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara
{
TCHAR szTitle[1024];
char *szText, *szDlgId, *szModule;
- if (!GetDlgItemText(hwndDlg, IDC_CTLTEXT, szTitle, sizeof(szTitle)))
+ if (!GetDlgItemText(hwndDlg, IDC_CTLTEXT, szTitle, _countof(szTitle)))
break;
szDlgId = CreateDialogIdString(GetControlDialog(hwndCtl));
if (szDlgId == NULL)