summaryrefslogtreecommitdiffstats
path: root/win/tclWinPanic.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-29 13:57:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-29 13:57:37 (GMT)
commit9d7eafebca8461def3b0ec64fd2996717dc7905a (patch)
tree9be5baceabf89f98d36c555071b1816b37e3b3bd /win/tclWinPanic.c
parent10643b02982edd5bfc36a6ab8d6f84795a00c3a3 (diff)
downloadtcl-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.c4
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));
}