mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[RAPPS] Remove deprecated TODO; use _countof() where needed.
This commit is contained in:
parent
3f5fe94104
commit
26ac8ac81e
5 changed files with 3 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue