mirror of
https://github.com/reactos/reactos.git
synced 2025-06-20 07:36:05 +00:00
[RAPPS] Minor formatting.
This commit is contained in:
parent
d30e5eb51c
commit
35efa2b9c7
3 changed files with 15 additions and 17 deletions
|
@ -1414,7 +1414,7 @@ BOOL CAppsListView::AddInstalledApplication(CInstalledApplicationInfo *InstAppIn
|
|||
|
||||
if (!hIcon)
|
||||
{
|
||||
/* Load default icon */
|
||||
/* Load the default icon */
|
||||
hIcon = LoadIconW(hInst, MAKEINTRESOURCEW(IDI_MAIN));
|
||||
}
|
||||
|
||||
|
@ -1451,8 +1451,8 @@ BOOL CAppsListView::AddAvailableApplication(CAvailableApplicationInfo *AvlbAppIn
|
|||
|
||||
if (!hIcon || GetLastError() != ERROR_SUCCESS)
|
||||
{
|
||||
/* Load default icon */
|
||||
hIcon = (HICON)LoadIconW(hInst, MAKEINTRESOURCEW(IDI_MAIN));
|
||||
/* Load the default icon */
|
||||
hIcon = LoadIconW(hInst, MAKEINTRESOURCEW(IDI_MAIN));
|
||||
}
|
||||
|
||||
int IconIndex = ImageList_AddIcon(m_hImageListView, hIcon);
|
||||
|
|
|
@ -38,7 +38,8 @@ VOID CAvailableApplicationInfo::RetrieveGeneralInfo(AvailableStrings& AvlbString
|
|||
|
||||
// TODO: I temporarily use the file name (without suffix) as package name.
|
||||
// It should be better to put this in a field of ini file.
|
||||
// consider write a converter to do this and write a github action for rapps-db to ensure package_name is unique.
|
||||
// Consider writing a converter to do this and write a github action for
|
||||
// rapps-db to ensure package_name is unique.
|
||||
m_szPkgName = m_sFileName;
|
||||
PathRemoveExtensionW(m_szPkgName.GetBuffer(MAX_PATH));
|
||||
m_szPkgName.ReleaseBuffer();
|
||||
|
@ -72,7 +73,6 @@ VOID CAvailableApplicationInfo::RetrieveGeneralInfo(AvailableStrings& AvlbString
|
|||
break;
|
||||
}
|
||||
|
||||
|
||||
if (PathIsURLW(ScrnshotLocation.GetString()))
|
||||
{
|
||||
m_szScrnshotLocation.Add(ScrnshotLocation);
|
||||
|
@ -416,7 +416,7 @@ BOOL CAvailableApps::UpdateAppsDB()
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
//if there are some files in the db folder - we're good
|
||||
// If there are some files in the db folder, we're good
|
||||
hFind = FindFirstFileW(m_Strings.szSearchPath, &FindFileData);
|
||||
if (hFind != INVALID_HANDLE_VALUE)
|
||||
{
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
* Copyright 2015 Ismael Ferreras Morezuelas (swyterzone+ros@gmail.com)
|
||||
* Copyright 2017 Alexander Shaposhnikov (sanchaez@reactos.org)
|
||||
*/
|
||||
#include "rapps.h"
|
||||
|
||||
#include "rapps.h"
|
||||
#include "misc.h"
|
||||
|
||||
static HANDLE hLog = NULL;
|
||||
|
@ -215,7 +215,6 @@ VOID InitLogs()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
VOID FreeLogs()
|
||||
{
|
||||
if (hLog)
|
||||
|
@ -224,7 +223,6 @@ VOID FreeLogs()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
BOOL WriteLogMessage(WORD wType, DWORD dwEventID, LPCWSTR lpMsg)
|
||||
{
|
||||
if (!SettingsInfo.bLogEnabled)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue