diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-19 19:39:25 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-19 19:39:25 (GMT) |
commit | 8d11cc8eacd0e8ba40c491c14435adce2a969075 (patch) | |
tree | f36728adb37c2f6308b0dd6760446eb1518fc44b /win/tkWinInit.c | |
parent | 5b3ebe4ef5c7c792a9312e446e9d5e42832afd69 (diff) | |
parent | 4801848f58e2c408b9ec56a5d1db5625447da27c (diff) | |
download | tk-8d11cc8eacd0e8ba40c491c14435adce2a969075.zip tk-8d11cc8eacd0e8ba40c491c14435adce2a969075.tar.gz tk-8d11cc8eacd0e8ba40c491c14435adce2a969075.tar.bz2 |
Merge 8.6
Diffstat (limited to 'win/tkWinInit.c')
-rw-r--r-- | win/tkWinInit.c | 4 |
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) { |