mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Extra inline helpers seat_{stdout,stderr}_pl.
These take a ptrlen in place of separate buffer and length arguments. Switched over to them in lots of places.
This commit is contained in:
@ -799,8 +799,8 @@ static void win_gui_logging_error(LogPolicy *lp, const char *event)
|
||||
{
|
||||
/* Send 'can't open log file' errors to the terminal window.
|
||||
* (Marked as stderr, although terminal.c won't care.) */
|
||||
seat_stderr(win_seat, event, strlen(event));
|
||||
seat_stderr(win_seat, "\r\n", 2);
|
||||
seat_stderr_pl(win_seat, ptrlen_from_asciz(event));
|
||||
seat_stderr_pl(win_seat, PTRLEN_LITERAL("\r\n"));
|
||||
}
|
||||
|
||||
void showeventlog(HWND hwnd)
|
||||
|
Reference in New Issue
Block a user