summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-06-18 17:55:24 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-06-18 17:55:24 +0300
commitc28759e7c9e63b1d092904b4299afdffec91bcdf (patch)
tree2707a12eddda373f779c1369015e5fac9148902c /plugins/Db3x_mmap/src
parent422b84ef2a9ccb27f456e2818a778a8b21b99b3d (diff)
new functions to access mirandaboot.ini from all plugins:
Profile_GetSetting() - reads a string from mirandaboot.ini Profile_GetSettingInt() - reads an integer from mirandaboot.ini
Diffstat (limited to 'plugins/Db3x_mmap/src')
-rw-r--r--plugins/Db3x_mmap/src/ui.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/Db3x_mmap/src/ui.cpp b/plugins/Db3x_mmap/src/ui.cpp
index 49601ba2c7..e0929408a7 100644
--- a/plugins/Db3x_mmap/src/ui.cpp
+++ b/plugins/Db3x_mmap/src/ui.cpp
@@ -102,9 +102,7 @@ static INT_PTR CALLBACK sttEnterPassword(HWND hwndDlg, UINT uMsg, WPARAM wParam,
case IDOK:
GetDlgItemText(hwndDlg, IDC_USERPASS, param->newPass, _countof(param->newPass));
- wchar_t tszPath[MAX_PATH];
- PathToAbsoluteW(L"\\mirandaboot.ini", tszPath);
- if (GetPrivateProfileInt(L"Database", L"RememberPassword", 0, tszPath)) {
+ if (Profile_GetSettingInt(L"Database/RememberPassword")) {
CREDENTIAL cred = { 0 };
cred.Type = CRED_TYPE_GENERIC;
cred.TargetName = L"Miranda NG/Database";