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/FileAsMessage/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/FileAsMessage/src/main.cpp') diff --git a/plugins/FileAsMessage/src/main.cpp b/plugins/FileAsMessage/src/main.cpp index 6892863329..1e405a38c4 100644 --- a/plugins/FileAsMessage/src/main.cpp +++ b/plugins/FileAsMessage/src/main.cpp @@ -42,7 +42,7 @@ int iIconId[5] = { 3, 2, 4, 1, 0 }; // int OnSkinIconsChanged(WPARAM wParam, LPARAM lParam) { - for (int indx = 0; indx < SIZEOF(hIcons); indx++) + for (int indx = 0; indx < _countof(hIcons); indx++) hIcons[indx] = IcoLib_GetIconByHandle(iconList[indx].hIcolib); WindowList_Broadcast(hFileList, WM_FE_SKINCHANGE, 0, 0); @@ -169,7 +169,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD dwVersi static int OnModulesLoaded(WPARAM wparam, LPARAM lparam) { - for (int indx = 0; indx < SIZEOF(hIcons); indx++) + for (int indx = 0; indx < _countof(hIcons); indx++) hIcons[indx] = IcoLib_GetIconByHandle(iconList[indx].hIcolib); hHookSkinIconsChanged = HookEvent(ME_SKIN2_ICONSCHANGED, OnSkinIconsChanged); @@ -191,7 +191,7 @@ extern "C" __declspec(dllexport) int Load(void) InitCRC32(); - Icon_Register(hInst, "fileAsMessage", iconList, SIZEOF(iconList)); + Icon_Register(hInst, "fileAsMessage", iconList, _countof(iconList)); hFileList = WindowList_Create(); -- cgit v1.2.3