mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
Fix build.
svn path=/trunk/; revision=75012
This commit is contained in:
parent
f8555b75c4
commit
f6131fb8a9
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue