Author: hbelusca
Date: Sat Mar 12 17:09:39 2016
New Revision: 70998
URL:
http://svn.reactos.org/svn/reactos?rev=70998&view=rev
Log:
[SHELL32]: Use _countof instead of ARRAYSIZE macro.
Modified:
trunk/reactos/dll/win32/shell32/dialogs/dialogs.cpp
Modified: trunk/reactos/dll/win32/shell32/dialogs/dialogs.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/dialogs/…
==============================================================================
--- trunk/reactos/dll/win32/shell32/dialogs/dialogs.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/dialogs/dialogs.cpp [iso-8859-1] Sat Mar 12 17:09:39
2016
@@ -234,12 +234,12 @@
hLibrary = LoadLibraryExW(lpstrFile, NULL, LOAD_LIBRARY_AS_DATAFILE |
LOAD_LIBRARY_AS_IMAGE_RESOURCE);
IconContext.hLibrary = hLibrary;
IconContext.Index = *lpdwIconIndex;
- StringCchCopyNW(IconContext.szName, ARRAYSIZE(IconContext.szName), lpstrFile,
nMaxFile);
+ StringCchCopyNW(IconContext.szName, _countof(IconContext.szName), lpstrFile,
nMaxFile);
res = DialogBoxParamW(shell32_hInstance, MAKEINTRESOURCEW(IDD_PICK_ICON), hwndOwner,
PickIconProc, (LPARAM)&IconContext);
if (res)
{
- StringCchCopyNW(lpstrFile, nMaxFile, IconContext.szName,
ARRAYSIZE(IconContext.szName));
+ StringCchCopyNW(lpstrFile, nMaxFile, IconContext.szName,
_countof(IconContext.szName));
*lpdwIconIndex = IconContext.Index;
}