[SHELL32]: Use _countof instead of ARRAYSIZE macro.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 12 Mar 2016 17:09:39 +0000 (17:09 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 12 Mar 2016 17:09:39 +0000 (17:09 +0000)
svn path=/trunk/; revision=70998

reactos/dll/win32/shell32/dialogs/dialogs.cpp

index 97f1a88..8ae9030 100644 (file)
@@ -234,12 +234,12 @@ BOOL WINAPI PickIconDlg(
     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;
     }