From e1b2602b836a315e10a3ebbc118da5ca4ed1d388 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 22 Jan 2013 17:10:39 +0000 Subject: - SecureIM: unicode fix (patch from person) git-svn-id: http://svn.miranda-ng.org/main/trunk@3233 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SecureIM/src/options.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/SecureIM/src/options.cpp b/plugins/SecureIM/src/options.cpp index a00fd70251..0d0e422c4b 100644 --- a/plugins/SecureIM/src/options.cpp +++ b/plugins/SecureIM/src/options.cpp @@ -1783,7 +1783,7 @@ BOOL ShowSelectKeyDlg(HWND hParent, LPSTR KeyPath) ofn.lpstrFile = KeyPath; TCHAR temp[MAX_PATH] = _T(""); - mir_sntprintf(temp, sizeof(temp),"%s\0*.asc\0%s(*.*)\0*.*\0",Translate("ASC files"),Translate("All files ")); + mir_sntprintf(temp, sizeof(temp), _T("%s\0*.asc\0%s(*.*)\0*.*\0"), TranslateT("ASC files"), TranslateT("All files ")); ofn.lpstrFilter = temp; ofn.lpstrTitle = TranslateT("Open Key File"); if (!GetOpenFileName(&ofn)) return FALSE; @@ -1854,7 +1854,7 @@ BOOL SaveExportRSAKeyDlg(HWND hParent, LPSTR key, BOOL priv) ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_NONETWORKBUTTON; ofn.lpstrFile = szFile; TCHAR temp[MAX_PATH] = _T(""); - mir_sntprintf(temp, sizeof(temp),"%s\0*.asc\0%s(*.*)\0*.*\0",Translate("ASC files"),Translate("All files ")); + mir_sntprintf(temp, sizeof(temp), _T("%s\0*.asc\0%s(*.*)\0*.*\0"), TranslateT("ASC files"), TranslateT("All files ")); ofn.lpstrFilter = temp; ofn.lpstrTitle = (priv) ? TranslateT("Save Private Key File") : TranslateT("Save Public Key File"); if (!GetSaveFileName(&ofn)) return FALSE; @@ -1880,7 +1880,7 @@ BOOL LoadImportRSAKeyDlg(HWND hParent, LPSTR key, BOOL priv) ofn.Flags = OFN_EXPLORER | OFN_CREATEPROMPT | OFN_OVERWRITEPROMPT | OFN_NOREADONLYRETURN; ofn.lpstrFile = szFile; TCHAR temp[MAX_PATH] = _T(""); - mir_sntprintf(temp, sizeof(temp),"%s\0*.asc\0%s(*.*)\0*.*\0",Translate("ASC files"),Translate("All files ")); + mir_sntprintf(temp, sizeof(temp), _T("%s\0*.asc\0%s(*.*)\0*.*\0"), TranslateT("ASC files"), TranslateT("All files ")); ofn.lpstrFilter = temp; ofn.lpstrTitle = (priv) ? TranslateT("Load Private Key File") : TranslateT("Load Public Key File"); if (!GetOpenFileName(&ofn)) return FALSE; -- cgit v1.2.3