notepad: fix date format to match windows
Austin English
austinenglish at gmail.com
Fri Apr 24 16:46:47 CDT 2009
We were forcefully overriding it to give the DATE_LONGDATE format,
whereas windows uses DATE_SHORTDATE.
Partly fixes bug 18193.
--
-Austin
-------------- next part --------------
diff --git a/programs/notepad/dialog.c b/programs/notepad/dialog.c
index 0595f69..d97e102 100644
--- a/programs/notepad/dialog.c
+++ b/programs/notepad/dialog.c
@@ -659,7 +659,7 @@ VOID DIALOG_EditTimeDate(VOID)
SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)spaceW);
- GetDateFormat(LOCALE_USER_DEFAULT, DATE_LONGDATE, &st, NULL, szDate, MAX_STRING_LEN);
+ GetDateFormat(LOCALE_USER_DEFAULT, 0, &st, NULL, szDate, MAX_STRING_LEN);
SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)szDate);
}
More information about the wine-patches
mailing list