summaryrefslogtreecommitdiff
path: root/src/modules/srfile/filerecvdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/srfile/filerecvdlg.cpp')
-rw-r--r--src/modules/srfile/filerecvdlg.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/modules/srfile/filerecvdlg.cpp b/src/modules/srfile/filerecvdlg.cpp
index 35ed892544..5b10dfbf16 100644
--- a/src/modules/srfile/filerecvdlg.cpp
+++ b/src/modules/srfile/filerecvdlg.cpp
@@ -142,11 +142,9 @@ void GetContactReceivedFilesDir(HANDLE hContact, TCHAR *szDir, int cchDir, BOOL
}
if ( !szTemp[0] )
-#ifdef _UNICODE
+
mir_sntprintf( szTemp, SIZEOF(szTemp), _T("%%mydocuments%%\\%s\\%%userid%%"), TranslateT("My Received Files"));
-#else
- mir_sntprintf( szTemp, SIZEOF(szTemp), _T("%%mydocuments%%\\%s\\%%userid%%"), "My Received Files");
-#endif
+
if ( hContact ) {
REPLACEVARSDATA dat = { 0 };
@@ -193,11 +191,9 @@ void GetReceivedFilesDir(TCHAR *szDir, int cchDir)
}
if ( !szTemp[0] )
-#ifdef _UNICODE
+
mir_sntprintf( szTemp, SIZEOF(szTemp), _T("%%mydocuments%%\\%s"), TranslateT("My Received Files"));
-#else
- mir_sntprintf( szTemp, SIZEOF(szTemp), _T("%%mydocuments%%\\%s"), "My Received Files");
-#endif
+
patchDir( szTemp, SIZEOF(szTemp));
RemoveInvalidPathChars(szTemp);