From 8ffc77be71507825a8f7585bcabff8ccc370206a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 8 Dec 2018 20:12:16 +0300 Subject: db_get_sa / db_get_wsa to receive the default value, massive code simplification --- plugins/UserGuide/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/UserGuide/src') diff --git a/plugins/UserGuide/src/main.cpp b/plugins/UserGuide/src/main.cpp index 1be4b8763f..2ea909a8e1 100644 --- a/plugins/UserGuide/src/main.cpp +++ b/plugins/UserGuide/src/main.cpp @@ -29,7 +29,7 @@ static INT_PTR ShowGuideFile(WPARAM, LPARAM) LPTSTR pszDirName = (LPTSTR)mir_alloc(250 * sizeof(wchar_t)); LPTSTR pszFileName = (LPTSTR)mir_alloc(250 * sizeof(wchar_t)); - wchar_t *ptszHelpFile = db_get_wsa(NULL, "UserGuide", "PathToHelpFile"); + wchar_t *ptszHelpFile = db_get_wsa(0, "UserGuide", "PathToHelpFile"); if (ptszHelpFile == nullptr) { mir_wstrcpy(pszDirName, L"%miranda_path%\\Plugins"); -- cgit v1.2.3