* fhandler.h (class fhandler_console): Add write_buf as pointer to

temporary buffer space.
	* fhandler_console.cc (CONVERT_LIMIT): Define as NT_MAX_PATH.  Add
	comment.
	(fhandler_console::write_normal): Use write_buf throughout.
	(fhandler_console::write): Use tmp_pathbuf to allocate write_buf.
This commit is contained in:
Corinna Vinschen
2008-03-10 17:23:50 +00:00
parent f37e220e86
commit 949c0ec28c
3 changed files with 25 additions and 8 deletions

View File

@ -884,7 +884,7 @@ class dev_console
bool raw_win32_keyboard_mode;
inline UINT get_console_cp ();
bool con_to_str (char *d, int dlen, WCHAR w);
DWORD con_to_str (char *d, int dlen, WCHAR w);
DWORD str_to_con (PWCHAR d, const char *s, DWORD sz);
void set_color (HANDLE);
bool fillin_info (HANDLE);
@ -906,6 +906,7 @@ class fhandler_console: public fhandler_termios
int len;
unsigned char buf[4]; /* Max len of valid UTF-8 sequence. */
} trunc_buf;
PWCHAR write_buf;
/* Output calls */
void set_default_attr ();