summaryrefslogtreecommitdiff
path: root/plugins/FloatingContacts/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-28 17:16:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-28 17:16:36 +0000
commit84b5cac8e0f148250c44fc91d7d9752dca13dbb6 (patch)
treefbb1f7d612419ea7ff02770ca5e5af31c28ebd61 /plugins/FloatingContacts/src
parente22f3f791caefb016c7ba72256c325609f6a5a5b (diff)
- MS_UTILS_GETBITMAPFILTERSTRINGS - end of story, replaced with BmpFilterGetStrings();
- parasite mir_strncat's removed from bitmap filter creation; - CMString::AllocSysString/SetSysString removed due to complete uselessness; - CMString::Detouch - typo fixed. git-svn-id: http://svn.miranda-ng.org/main/trunk@13881 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FloatingContacts/src')
-rw-r--r--plugins/FloatingContacts/src/options.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/plugins/FloatingContacts/src/options.cpp b/plugins/FloatingContacts/src/options.cpp
index b913ee7822..0571b83aa8 100644
--- a/plugins/FloatingContacts/src/options.cpp
+++ b/plugins/FloatingContacts/src/options.cpp
@@ -244,24 +244,22 @@ static INT_PTR APIENTRY OptSknWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LP
case IDC_BROWSE:
{
- char str[MAX_PATH];
- OPENFILENAMEA ofn = {0};
- char filter[512];
+ TCHAR str[MAX_PATH], filter[512];
+ GetDlgItemText(hwndDlg, IDC_FILENAME, str, SIZEOF(str));
+ BmpFilterGetStrings(filter, SIZEOF(filter));
- GetDlgItemTextA(hwndDlg, IDC_FILENAME, str, SIZEOF(str));
- ofn.lStructSize = sizeof(OPENFILENAMEA);
+ OPENFILENAME ofn = {0};
+ ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = hwndDlg;
- ofn.hInstance = NULL;
- CallService(MS_UTILS_GETBITMAPFILTERSTRINGS, sizeof(filter), (LPARAM)filter);
ofn.lpstrFilter = filter;
ofn.lpstrFile = str;
ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
ofn.nMaxFile = SIZEOF(str);
ofn.nMaxFileTitle = MAX_PATH;
- ofn.lpstrDefExt = "bmp";
- if (!GetOpenFileNameA(&ofn))
+ ofn.lpstrDefExt = _T("bmp");
+ if (!GetOpenFileName(&ofn))
return FALSE;
- SetDlgItemTextA(hwndDlg, IDC_FILENAME, str);
+ SetDlgItemText(hwndDlg, IDC_FILENAME, str);
}
break;