summaryrefslogtreecommitdiffstats
path: root/win/tkWinInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-30 21:00:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-30 21:00:31 (GMT)
commit46f8ffc87ddcd58b713381c3d0c0fb8ad18035a1 (patch)
tree59c1b269d014d60a84384986960c0e2e5f624e33 /win/tkWinInit.c
parentd9d7ac4b437138307673eb8eed3d6753d7c237f6 (diff)
downloadtk-46f8ffc87ddcd58b713381c3d0c0fb8ad18035a1.zip
tk-46f8ffc87ddcd58b713381c3d0c0fb8ad18035a1.tar.gz
tk-46f8ffc87ddcd58b713381c3d0c0fb8ad18035a1.tar.bz2
Don't use L'?', the L doesn't do anything here
Diffstat (limited to 'win/tkWinInit.c')
-rw-r--r--win/tkWinInit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/win/tkWinInit.c b/win/tkWinInit.c
index 690574e..be3c340 100644
--- a/win/tkWinInit.c
+++ b/win/tkWinInit.c
@@ -137,21 +137,21 @@ TkpDisplayWarning(
len = MultiByteToWideChar(CP_UTF8, 0, title, -1, titleString, TK_MAX_WARN_LEN);
msgString = &titleString[len + 1];
- titleString[TK_MAX_WARN_LEN - 1] = L'\0';
+ titleString[TK_MAX_WARN_LEN - 1] = '\0';
MultiByteToWideChar(CP_UTF8, 0, msg, -1, msgString, (TK_MAX_WARN_LEN - 1) - len);
/*
* Truncate MessageBox string if it is too long to not overflow the screen
* and cause possible oversized window error.
*/
- if (titleString[TK_MAX_WARN_LEN - 1] != L'\0') {
+ if (titleString[TK_MAX_WARN_LEN - 1] != '\0') {
memcpy(titleString + (TK_MAX_WARN_LEN - 5), L" ...", 5 * sizeof(WCHAR));
}
if (IsDebuggerPresent()) {
- titleString[len - 1] = L':';
- titleString[len] = L' ';
+ titleString[len - 1] = ':';
+ titleString[len] = ' ';
OutputDebugStringW(titleString);
} else {
- titleString[len - 1] = L'\0';
+ titleString[len - 1] = '\0';
MessageBoxW(NULL, msgString, titleString,
MB_OK | MB_ICONEXCLAMATION | MB_SYSTEMMODAL
| MB_SETFOREGROUND | MB_TOPMOST);