Author: ekohl
Date: Sat May 31 15:09:17 2008
New Revision: 33791
URL:
http://svn.reactos.org/svn/reactos?rev=33791&view=rev
Log:
User the user-specific date format instead of a hard-coded one.
Modified:
trunk/reactos/dll/cpl/appwiz-new/appwiz.c
Modified: trunk/reactos/dll/cpl/appwiz-new/appwiz.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/appwiz-new/appwiz.…
==============================================================================
--- trunk/reactos/dll/cpl/appwiz-new/appwiz.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/appwiz-new/appwiz.c [iso-8859-1] Sat May 31 15:09:17 2008
@@ -243,7 +243,8 @@
{
if (((int)localtime.wYear > 1900) && ((int)localtime.wYear
< 3000))
{
- swprintf(szLastUsed, L"%02d.%02d.%02d",
localtime.wMonth, localtime.wDay, localtime.wYear);
+ GetDateFormat(LOCALE_USER_DEFAULT, DATE_SHORTDATE,
&localtime,
+ NULL, szLastUsed, 256);
}
else wcscpy(szLastUsed,L"---");
}