From 4c814798c7bc7f6a0f92c21b027b26290622aa2f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jun 2015 19:35:42 +0000 Subject: SIZEOF replaced with more secure analog - _countof git-svn-id: http://svn.miranda-ng.org/main/trunk@14270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ModernOpt/src/mopt_selector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/ModernOpt/src/mopt_selector.cpp') diff --git a/plugins/ModernOpt/src/mopt_selector.cpp b/plugins/ModernOpt/src/mopt_selector.cpp index 2b49e1ddf8..70d47e9239 100644 --- a/plugins/ModernOpt/src/mopt_selector.cpp +++ b/plugins/ModernOpt/src/mopt_selector.cpp @@ -85,7 +85,7 @@ struct TSkinListItem if (TCHAR *p = _tcsrchr(title, _T('.'))) *p = 0; TCHAR curPath[MAX_PATH]; - GetCurrentDirectory(SIZEOF(curPath), curPath); + GetCurrentDirectory(_countof(curPath), curPath); path = (TCHAR *)mir_alloc(MAX_PATH * sizeof(TCHAR)); PathToRelativeT(curPath, path); @@ -130,7 +130,7 @@ static void BuildSkinList(HWND hwndList, TCHAR *szExt, int nExtLength = -1, bool { if (start) { static TCHAR mirPath[MAX_PATH]; - GetModuleFileName(NULL, mirPath, SIZEOF(mirPath)); + GetModuleFileName(NULL, mirPath, _countof(mirPath)); if (TCHAR *p = _tcsrchr(mirPath, _T('\\'))) *p = 0; SetCurrentDirectory(mirPath); SendMessage(hwndList, LB_RESETCONTENT, 0, 0); -- cgit v1.2.3