1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Jacob's fixes for the Event Log

[originally from svn r963]
This commit is contained in:
Simon Tatham 2001-03-02 09:24:05 +00:00
parent cc9d7ba87e
commit b6255788ca

View File

@ -50,7 +50,7 @@ static int CALLBACK LogProc (HWND hwnd, UINT msg,
switch (msg) {
case WM_INITDIALOG:
{
static const int tabs[4] = {78, 108};
static int tabs[4] = {78, 108};
SendDlgItemMessage (hwnd, IDN_LIST, LB_SETTABSTOPS, 2,
(LPARAM) tabs);
}
@ -2058,14 +2058,14 @@ void logevent (char *string) {
events[nevents] = smalloc(strlen(timebuf)+strlen(string)+1);
strcpy(events[nevents], timebuf);
strcat(events[nevents], string);
nevents++;
if (logbox) {
int count;
SendDlgItemMessage (logbox, IDN_LIST, LB_ADDSTRING,
0, (LPARAM)string);
0, (LPARAM)events[nevents]);
count = SendDlgItemMessage (logbox, IDN_LIST, LB_GETCOUNT, 0, 0);
SendDlgItemMessage (logbox, IDN_LIST, LB_SETTOPINDEX, count-1, 0);
}
nevents++;
}
void showeventlog (HWND hwnd) {