+
+ /* If the file starts with .LOG, add a time/date at the end and set cursor after
+ * See http://support.microsoft.com/?kbid=260563
+ */
+ if (GetWindowTextW(Globals.hEdit, log, sizeof(log)/sizeof(log[0])) && !lstrcmp(log, dotlog))
+ {
+ static const WCHAR lfW[] = { '\r','\n',0 };
+ SendMessage(Globals.hEdit, EM_SETSEL, GetWindowTextLength(Globals.hEdit), -1);
+ SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)lfW);
+ DIALOG_EditTimeDate();
+ SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)lfW);
+ }