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/SecureIM/src/loadicons.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/SecureIM/src/loadicons.cpp') diff --git a/plugins/SecureIM/src/loadicons.cpp b/plugins/SecureIM/src/loadicons.cpp index bac49973cf..d13a3a746e 100644 --- a/plugins/SecureIM/src/loadicons.cpp +++ b/plugins/SecureIM/src/loadicons.cpp @@ -58,7 +58,7 @@ HINSTANCE LoadIconsPack(const char* szIconsPack) int ReloadIcons(WPARAM wParam, LPARAM lParam) { - for (int i = 0; i < SIZEOF(icons); i++) { + for (int i = 0; i < _countof(icons); i++) { HICON hIcon = IcoLib_GetIcon(icons[i].name); if (icons[i].tbl == TBL_IEC) g_hIEC[icons[i].idx] = hIcon; @@ -94,13 +94,13 @@ void InitIcons(void) g_hIconInst = hNewIconInst; TCHAR tszPath[MAX_PATH]; - GetModuleFileName(g_hIconInst, tszPath, SIZEOF(tszPath)); + GetModuleFileName(g_hIconInst, tszPath, _countof(tszPath)); SKINICONDESC sid = { 0 }; sid.section.a = "SecureIM"; sid.defaultFile.t = tszPath; - for (int i = 0; i < SIZEOF(icons); i++) { + for (int i = 0; i < _countof(icons); i++) { sid.section.a = icons[i].section; sid.pszName = icons[i].name; sid.description.a = icons[i].text; -- cgit v1.2.3