diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-12 23:51:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-12 23:51:06 +0300 |
commit | f4ae133ee3ba85c3ee2387cae24aaf25a6ae5c74 (patch) | |
tree | 889405636cb8e16187aed9ba8a44406aaef1ef17 /plugins/Clist_nicer | |
parent | 30dd1623d85c3f8719b9668bc03b4bda26adc2e9 (diff) |
NULL -> 0
Diffstat (limited to 'plugins/Clist_nicer')
-rw-r--r-- | plugins/Clist_nicer/src/clcopts.cpp | 2 | ||||
-rw-r--r-- | plugins/Clist_nicer/src/extBackg.cpp | 8 | ||||
-rw-r--r-- | plugins/Clist_nicer/src/viewmodes.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Clist_nicer/src/clcopts.cpp b/plugins/Clist_nicer/src/clcopts.cpp index a1c4e96ff8..624a01b2cc 100644 --- a/plugins/Clist_nicer/src/clcopts.cpp +++ b/plugins/Clist_nicer/src/clcopts.cpp @@ -707,7 +707,7 @@ static INT_PTR CALLBACK DlgProcClcBkgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, CheckDlgButton(hwndDlg, IDC_SKINMODE, cfg::dat.bWallpaperMode ? BST_CHECKED : BST_UNCHECKED);
{
DBVARIANT dbv;
- if (!db_get_ws(NULL, "CLC", "BkBitmap", &dbv)) {
+ if (!db_get_ws(0, "CLC", "BkBitmap", &dbv)) {
wchar_t szPath[MAX_PATH];
if (PathToAbsoluteW(dbv.pwszVal, szPath))
SetDlgItemText(hwndDlg, IDC_FILENAME, szPath);
diff --git a/plugins/Clist_nicer/src/extBackg.cpp b/plugins/Clist_nicer/src/extBackg.cpp index 6cffd44a57..f4bf1be8b3 100644 --- a/plugins/Clist_nicer/src/extBackg.cpp +++ b/plugins/Clist_nicer/src/extBackg.cpp @@ -1184,7 +1184,7 @@ static void BTN_ReadItem(char *itemName, char *file) void IMG_LoadItems()
{
DBVARIANT dbv;
- if (db_get_ws(NULL, "CLC", "AdvancedSkin", &dbv))
+ if (db_get_ws(0, "CLC", "AdvancedSkin", &dbv))
return;
wchar_t tszFileName[MAX_PATH];
@@ -1460,7 +1460,7 @@ static void ApplyCLUISkin() DBVARIANT dbv = { 0 };
wchar_t tszFinalName[MAX_PATH];
char szFinalName[MAX_PATH];
- if (!db_get_ws(NULL, "CLC", "AdvancedSkin", &dbv)) {
+ if (!db_get_ws(0, "CLC", "AdvancedSkin", &dbv)) {
MY_pathToAbsolute(dbv.pwszVal, tszFinalName);
WideCharToMultiByte(CP_ACP, 0, tszFinalName, MAX_PATH, szFinalName, MAX_PATH, nullptr, nullptr);
@@ -1513,7 +1513,7 @@ static INT_PTR CALLBACK DlgProcSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, L else
Utils::enableDlgControl(hwndDlg, IDC_RELOAD, FALSE);
CheckDlgButton(hwndDlg, IDC_USESKIN, db_get_b(0, "CLUI", "useskin", 0) ? BST_CHECKED : BST_UNCHECKED);
- if (!db_get_ws(NULL, "CLC", "AdvancedSkin", &dbv)) {
+ if (!db_get_ws(0, "CLC", "AdvancedSkin", &dbv)) {
SetDlgItemText(hwndDlg, IDC_SKINFILENAME, dbv.pwszVal);
db_free(&dbv);
}
@@ -1564,7 +1564,7 @@ static INT_PTR CALLBACK DlgProcSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, L int skinChanged = 0;
DBVARIANT dbv = { 0 };
- if (!db_get_ws(NULL, "CLC", "AdvancedSkin", &dbv)) {
+ if (!db_get_ws(0, "CLC", "AdvancedSkin", &dbv)) {
if (mir_wstrcmp(dbv.pwszVal, final_path))
skinChanged = TRUE;
db_free(&dbv);
diff --git a/plugins/Clist_nicer/src/viewmodes.cpp b/plugins/Clist_nicer/src/viewmodes.cpp index 82d6323b93..7b8565deae 100644 --- a/plugins/Clist_nicer/src/viewmodes.cpp +++ b/plugins/Clist_nicer/src/viewmodes.cpp @@ -434,7 +434,7 @@ void UpdateFilters() goto cleanup;
mir_snprintf(szSetting, "%c%s_GF", 246, szBuf);
- if (db_get_ws(NULL, CLVM_MODULE, szSetting, &dbv_gf))
+ if (db_get_ws(0, CLVM_MODULE, szSetting, &dbv_gf))
goto cleanup;
mir_snprintf(szSetting, "%c%s_OPT", 246, szBuf);
|