diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-06-29 13:57:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-06-29 13:57:37 (GMT) |
commit | 9d7eafebca8461def3b0ec64fd2996717dc7905a (patch) | |
tree | 9be5baceabf89f98d36c555071b1816b37e3b3bd /win/tclWinPanic.c | |
parent | 10643b02982edd5bfc36a6ab8d6f84795a00c3a3 (diff) | |
download | tcl-9d7eafebca8461def3b0ec64fd2996717dc7905a.zip tcl-9d7eafebca8461def3b0ec64fd2996717dc7905a.tar.gz tcl-9d7eafebca8461def3b0ec64fd2996717dc7905a.tar.bz2 |
Code cleanup, like TCHAR -> WCHAR and TEXT("xxx") -> L"xxx", since we always compile in UNICODE mode.
Diffstat (limited to 'win/tclWinPanic.c')
-rw-r--r-- | win/tclWinPanic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinPanic.c b/win/tclWinPanic.c index 5c6e02d..fbd3e46 100644 --- a/win/tclWinPanic.c +++ b/win/tclWinPanic.c @@ -42,14 +42,14 @@ Tcl_ConsolePanic( va_start(argList, format); vsnprintf(buf+3, sizeof(buf)-3, format, argList); buf[sizeof(buf)-1] = 0; - msgString[TCL_MAX_WARN_LEN-1] = L'\0'; + msgString[TCL_MAX_WARN_LEN-1] = '\0'; MultiByteToWideChar(CP_UTF8, 0, buf+3, -1, msgString, TCL_MAX_WARN_LEN); /* * Truncate MessageBox string if it is too long to not overflow the buffer. */ - if (msgString[TCL_MAX_WARN_LEN-1] != L'\0') { + if (msgString[TCL_MAX_WARN_LEN-1] != '\0') { memcpy(msgString + (TCL_MAX_WARN_LEN - 5), L" ...", 5 * sizeof(WCHAR)); } |