notepad: don't append seconds to time format

Austin English austinenglish at gmail.com
Mon Apr 27 18:39:49 CDT 2009


Windows doesn't append seconds to the time. Checked on English/German locales.

-- 
-Austin
-------------- next part --------------
diff --git a/programs/notepad/dialog.c b/programs/notepad/dialog.c
index aa0a53c..0abbc33 100644
--- a/programs/notepad/dialog.c
+++ b/programs/notepad/dialog.c
@@ -654,7 +654,7 @@ VOID DIALOG_EditTimeDate(VOID)
 
     GetLocalTime(&st);
 
-    GetTimeFormat(LOCALE_USER_DEFAULT, 0, &st, NULL, szDate, MAX_STRING_LEN);
+    GetTimeFormat(LOCALE_USER_DEFAULT, TIME_NOSECONDS, &st, NULL, szDate, MAX_STRING_LEN);
     SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)szDate);
 
     SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)spaceW);


More information about the wine-patches mailing list