From f4ae133ee3ba85c3ee2387cae24aaf25a6ae5c74 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 Nov 2018 23:51:06 +0300 Subject: NULL -> 0 --- plugins/Clist_nicer/src/clcopts.cpp | 2 +- plugins/Clist_nicer/src/extBackg.cpp | 8 ++++---- plugins/Clist_nicer/src/viewmodes.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/Clist_nicer') 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); -- cgit v1.2.3