summaryrefslogtreecommitdiffstats
path: root/win/tkWinInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-30 14:45:38 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-30 14:45:38 (GMT)
commitb50b9471ff522194c657fe4228da646eaa8e5698 (patch)
tree8d7a6a471a8c67a684b1658c0f26b88b81a796de /win/tkWinInit.c
parent0bc5aa8a4426d81a3e4419b0e9b2f6cb3261dff2 (diff)
downloadtk-b50b9471ff522194c657fe4228da646eaa8e5698.zip
tk-b50b9471ff522194c657fe4228da646eaa8e5698.tar.gz
tk-b50b9471ff522194c657fe4228da646eaa8e5698.tar.bz2
Use WCHAR in stead of TCHAR (almost) everywhere, since we now only support compiling Tcl in UNICODE mode anyway.
Diffstat (limited to 'win/tkWinInit.c')
-rw-r--r--win/tkWinInit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinInit.c b/win/tkWinInit.c
index 977474c..690574e 100644
--- a/win/tkWinInit.c
+++ b/win/tkWinInit.c
@@ -178,14 +178,14 @@ Tcl_Obj*
TkWin32ErrorObj(
HRESULT hrError)
{
- LPTSTR lpBuffer = NULL, p = NULL;
- TCHAR sBuffer[30];
+ LPWSTR lpBuffer = NULL, p = NULL;
+ WCHAR sBuffer[30];
Tcl_Obj* errPtr = NULL;
Tcl_DString ds;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM
| FORMAT_MESSAGE_IGNORE_INSERTS, NULL, (DWORD)hrError,
- LANG_NEUTRAL, (LPTSTR)&lpBuffer, 0, NULL);
+ LANG_NEUTRAL, (LPWSTR)&lpBuffer, 0, NULL);
if (lpBuffer == NULL) {
lpBuffer = sBuffer;