summaryrefslogtreecommitdiffstats
path: root/win/tkWinInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-19 19:39:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-19 19:39:25 (GMT)
commit8d11cc8eacd0e8ba40c491c14435adce2a969075 (patch)
treef36728adb37c2f6308b0dd6760446eb1518fc44b /win/tkWinInit.c
parent5b3ebe4ef5c7c792a9312e446e9d5e42832afd69 (diff)
parent4801848f58e2c408b9ec56a5d1db5625447da27c (diff)
downloadtk-8d11cc8eacd0e8ba40c491c14435adce2a969075.zip
tk-8d11cc8eacd0e8ba40c491c14435adce2a969075.tar.gz
tk-8d11cc8eacd0e8ba40c491c14435adce2a969075.tar.bz2
Merge 8.6
Diffstat (limited to 'win/tkWinInit.c')
-rw-r--r--win/tkWinInit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinInit.c b/win/tkWinInit.c
index be3c340..a2ab37c 100644
--- a/win/tkWinInit.c
+++ b/win/tkWinInit.c
@@ -183,13 +183,13 @@ TkWin32ErrorObj(
Tcl_Obj* errPtr = NULL;
Tcl_DString ds;
- FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM
+ FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM
| FORMAT_MESSAGE_IGNORE_INSERTS, NULL, (DWORD)hrError,
LANG_NEUTRAL, (LPWSTR)&lpBuffer, 0, NULL);
if (lpBuffer == NULL) {
lpBuffer = sBuffer;
- wsprintf(sBuffer, L"Error Code: %08lX", hrError);
+ wsprintfW(sBuffer, L"Error Code: %08lX", hrError);
}
if ((p = wcsrchr(lpBuffer, '\r')) != NULL) {