From: Giannis Adamopoulos Date: Mon, 12 Jun 2017 10:11:39 +0000 (+0000) Subject: Fix build. X-Git-Tag: ReactOS-0.4.6~336 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=f6131fb8a935420ab4775ddb3bd1fafe5b662649 Fix build. svn path=/trunk/; revision=75012 --- diff --git a/reactos/dll/win32/shell32/folders/CRecycleBin.cpp b/reactos/dll/win32/shell32/folders/CRecycleBin.cpp index d82f6691751..e866203b091 100644 --- a/reactos/dll/win32/shell32/folders/CRecycleBin.cpp +++ b/reactos/dll/win32/shell32/folders/CRecycleBin.cpp @@ -757,15 +757,15 @@ HRESULT WINAPI CRecycleBin::GetDetailsOf(PCUITEMID_CHILD pidl, UINT iColumn, LPS // FIXME: We should in fact use a UNICODE version of _ILGetFileType szTypeName[0] = L'\0'; wcscpy(buffer, PathFindExtensionW(pFileDetails->szName)); - if (!( HCR_MapTypeToValueW(buffer, buffer, ARRAYSIZE(buffer), TRUE) && - HCR_MapTypeToValueW(buffer, szTypeName, ARRAYSIZE(szTypeName), FALSE ))) + if (!( HCR_MapTypeToValueW(buffer, buffer, _countof(buffer), TRUE) && + HCR_MapTypeToValueW(buffer, szTypeName, _countof(szTypeName), FALSE ))) { /* load localized file string */ szTypeName[0] = '\0'; - if(LoadStringW(shell32_hInstance, IDS_ANY_FILE, szTypeName, ARRAYSIZE(szTypeName))) + if(LoadStringW(shell32_hInstance, IDS_ANY_FILE, szTypeName, _countof(szTypeName))) { szTypeName[63] = '\0'; - StringCchPrintfW(buffer, ARRAYSIZE(buffer), szTypeName, PathFindExtensionW(pFileDetails->szName)); + StringCchPrintfW(buffer, _countof(buffer), szTypeName, PathFindExtensionW(pFileDetails->szName)); } } return SHSetStrRet(&pDetails->str, szTypeName);