Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbseifert <none@none>2003-11-26 11:29:13 +0300
committerbseifert <none@none>2003-11-26 11:29:13 +0300
commitf2930321f1f56218ef8e9d47b396195379dbc43b (patch)
tree986146cbf336d9bb39983ec6a6728a1edf5d6538 /windirstat/globalhelpers.cpp
parentbf4e3f309540fb9603dee920beb5560a38cfcafc (diff)
Bugfixes, new column in extensionlist, new Resource Version.
Diffstat (limited to 'windirstat/globalhelpers.cpp')
-rw-r--r--windirstat/globalhelpers.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/windirstat/globalhelpers.cpp b/windirstat/globalhelpers.cpp
index 6fbd1db..f741c04 100644
--- a/windirstat/globalhelpers.cpp
+++ b/windirstat/globalhelpers.cpp
@@ -194,12 +194,14 @@ CString FormatFileTime(const FILETIME& t)
if (!FileTimeToSystemTime(&t, &st))
return MdGetWinerrorText(GetLastError());
+ LCID lcid = MAKELCID(GetApp()->GetLangid(), SORT_DEFAULT);
+
CString date;
- VERIFY(0 < GetDateFormat(LOCALE_USER_DEFAULT, DATE_SHORTDATE, &st, NULL, date.GetBuffer(256), 256));
+ VERIFY(0 < GetDateFormat(lcid, DATE_SHORTDATE, &st, NULL, date.GetBuffer(256), 256));
date.ReleaseBuffer();
CString time;
- VERIFY(0 < GetTimeFormat(LOCALE_USER_DEFAULT, 0, &st, NULL, time.GetBuffer(256), 256));
+ VERIFY(0 < GetTimeFormat(lcid, 0, &st, NULL, time.GetBuffer(256), 256));
time.ReleaseBuffer();
return date + _T(" ") + time;
@@ -451,7 +453,7 @@ bool FolderExists(LPCTSTR path)
{
// Here we land, if path is an UNC drive. In this case we
// try another FindFile:
- b= finder.FindFile(CString(path) + "\\*.*");
+ b= finder.FindFile(CString(path) + _T("\\*.*"));
if (b)
return true;