diff options
Diffstat (limited to 'plugins/PackUpdater/Src')
-rw-r--r-- | plugins/PackUpdater/Src/Notifications.cpp | 10 | ||||
-rw-r--r-- | plugins/PackUpdater/Src/Utils.cpp | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/plugins/PackUpdater/Src/Notifications.cpp b/plugins/PackUpdater/Src/Notifications.cpp index 7c4efd6a82..edf69e2b09 100644 --- a/plugins/PackUpdater/Src/Notifications.cpp +++ b/plugins/PackUpdater/Src/Notifications.cpp @@ -320,7 +320,7 @@ INT_PTR CALLBACK DlgUpdate(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam mir_free(descr);
DBVARIANT dbv;
bool check = todo[i].enabled;
- if(!DBGetContactSettingTString(0, MODNAME, stored_setting, &dbv))
+ if (!DBGetContactSettingTString(0, MODNAME, stored_setting, &dbv))
{
if(dbv.ptszVal && lstrcmp(dbv.ptszVal, todo[i].tszNewVer) == 0)
check = false;
@@ -343,7 +343,7 @@ INT_PTR CALLBACK DlgUpdate(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam }
case WM_NOTIFY:
{
- if(((LPNMHDR) lParam)->hwndFrom == hwndList)
+ if (((LPNMHDR) lParam)->hwndFrom == hwndList)
{
switch (((LPNMHDR) lParam)->code)
{
@@ -361,14 +361,14 @@ INT_PTR CALLBACK DlgUpdate(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam ListView_GetItem(hwndList, &lvI);
vector<FILEINFO> &todo = *(vector<FILEINFO> *)GetWindowLongPtr(hDlg, GWLP_USERDATA);
- if((nmlv->uNewState ^ nmlv->uOldState) & LVIS_STATEIMAGEMASK)
+ if ((nmlv->uNewState ^ nmlv->uOldState) & LVIS_STATEIMAGEMASK)
{
todo[lvI.iItem].enabled = ListView_GetCheckState(hwndList, nmlv->iItem);
/*char stored_setting[256];
mir_snprintf(stored_setting, 256, "DisabledVer%s", ((UpdateInternal *)lvI.lParam)->update.szComponentName);
- if(((UpdateInternal *)lvI.lParam)->update_options.enabled)
+ if (((UpdateInternal *)lvI.lParam)->update_options.enabled)
DBDeleteContactSetting(0, "Updater", stored_setting); // user has re-enabled update to this version - remove setting from db
else
DBWriteContactSettingString(0, "Updater", stored_setting, ((UpdateInternal *)lvI.lParam)->newVersion);
@@ -399,7 +399,7 @@ INT_PTR CALLBACK DlgUpdate(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam mir_snprintf(stored_setting, 256, "DisabledVer%s", descr);
mir_free(descr);
DBVARIANT dbv;
- if(!DBGetContactSettingTString(0, MODNAME, stored_setting, &dbv))
+ if (!DBGetContactSettingTString(0, MODNAME, stored_setting, &dbv))
{
if(dbv.ptszVal && lstrcmp(dbv.ptszVal, todo[lvI.iItem].tszNewVer) == 0)
CheckDlgButton(hDlg, IDC_DONOTREMIND, BST_CHECKED);
diff --git a/plugins/PackUpdater/Src/Utils.cpp b/plugins/PackUpdater/Src/Utils.cpp index 3665fdbb90..735e347f2e 100644 --- a/plugins/PackUpdater/Src/Utils.cpp +++ b/plugins/PackUpdater/Src/Utils.cpp @@ -145,7 +145,7 @@ BOOL DownloadFile(LPCTSTR tszURL, LPCTSTR tszLocal) if(pReply)
{
- if((200 == pReply->resultCode) && (pReply->dataLength > 0))
+ if ((200 == pReply->resultCode) && (pReply->dataLength > 0))
{
hFile = CreateFile(tszLocal, GENERIC_READ | GENERIC_WRITE, NULL, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
WriteFile(hFile, pReply->pData, (DWORD)pReply->dataLength, &dwBytes, NULL);
@@ -202,7 +202,7 @@ static void CheckUpdates(void *) DBVARIANT dbVar = {0};
vector<FILEINFO> UpdateFiles;
- if(!Exists(tszRoot))
+ if (!Exists(tszRoot))
CreateDirectory(tszRoot, NULL);
Files.clear();
Reminder = DBGetContactSettingByte(NULL, MODNAME, "Reminder", DEFAULT_REMINDER);
@@ -369,7 +369,7 @@ static void CheckUpdates(void *) mir_free(tszSysRoot);
mir_free(tszProgFiles);
} // end compare versions
- } //end checking all files in for()
+ } //end checking all files in for ()
// Show dialog
if (UpdateFiles.size()>0)
|