[RAPPS] Remove deprecated TODO; use _countof() where needed.

This commit is contained in:
Hermès Bélusca-Maïto 2018-02-03 23:40:58 +01:00
parent 3f5fe94104
commit 26ac8ac81e
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
5 changed files with 3 additions and 6 deletions

View file

@ -145,7 +145,6 @@ class CAvailableAppView
szLoadedAInfoText.LoadStringW(IDS_AINFO_LANGUAGES);
//TODO: replace those hardcoded strings
if (Info->HasNativeLanguage())
{
szLoadedTextAvailability.LoadStringW(IDS_LANGUAGE_AVAILABLE_TRANSLATION);

View file

@ -444,7 +444,7 @@ INT_PTR CALLBACK CDownloadManager::DownloadDlgProc(HWND Dlg, UINT uMsg, WPARAM w
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;

View file

@ -225,7 +225,7 @@ BOOL ExtractFilesFromCab(LPCWSTR lpCabName, LPCWSTR lpOutputPath)
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);

View file

@ -147,7 +147,6 @@ CreateHSplitBar(HWND hwnd)
hInst,
NULL);
if (hHSplitter == NULL)
{
/* TODO: Show error message */
@ -288,7 +287,6 @@ CreateVSplitBar(HWND hwnd)
hInst,
NULL);
if (!hVSplitter)
{
/* TODO: Show error message */

View file

@ -47,7 +47,7 @@ BOOL UseCmdParameters(LPWSTR lpCmdLine)
WCHAR szName[MAX_PATH];
do
{
if (SetupGetStringFieldW(&Context, 1, szName, MAX_PATH, NULL))
if (SetupGetStringFieldW(&Context, 1, szName, _countof(szName), NULL))
{
arrNames.Add(szName);
}