szLoadedAInfoText.LoadStringW(IDS_AINFO_LANGUAGES);
- //TODO: replace those hardcoded strings
if (Info->HasNativeLanguage())
{
szLoadedTextAvailability.LoadStringW(IDS_LANGUAGE_AVAILABLE_TRANSLATION);
DownloadsListView.LoadList(AppsToInstallList);
// Get a dlg string for later use
- GetWindowTextW(Dlg, szCaption, MAX_PATH);
+ GetWindowTextW(Dlg, szCaption, _countof(szCaption));
// Hide a placeholder from displaying
szTempCaption = szCaption;
ZeroMemory(&Dest, sizeof(Dest));
WideCharToMultiByte(CP_ACP, 0, lpOutputPath, -1, Dest.Destination, MAX_PATH, NULL, NULL);
- WideCharToMultiByte(CP_ACP, 0, lpCabName, -1, szCabName, MAX_PATH, NULL, NULL);
+ WideCharToMultiByte(CP_ACP, 0, lpCabName, -1, szCabName, _countof(szCabName), NULL, NULL);
Dest.Operation = EXTRACT_FILLFILELIST;
Result = pfnExtract(&Dest, szCabName);
WCHAR szName[MAX_PATH];
do
{
- if (SetupGetStringFieldW(&Context, 1, szName, MAX_PATH, NULL))
+ if (SetupGetStringFieldW(&Context, 1, szName, _countof(szName), NULL))
{
arrNames.Add(szName);
}