summaryrefslogtreecommitdiffstats
path: root/win/tkWinTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-16 07:59:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-16 07:59:23 (GMT)
commit487b808fa7ad1096e9ee4112a719c8ed3cd45ff8 (patch)
tree91ab786798803ba6ceb2719029759f2c87ccfd5f /win/tkWinTest.c
parentb759c79faef78af4298e356f590b3d3a35b5ae01 (diff)
downloadtk-487b808fa7ad1096e9ee4112a719c8ed3cd45ff8.zip
tk-487b808fa7ad1096e9ee4112a719c8ed3cd45ff8.tar.gz
tk-487b808fa7ad1096e9ee4112a719c8ed3cd45ff8.tar.bz2
TCHAR -> WCHAR conversions, since our TCHAR is actually WCHAR when compiling everything in UNICODE mode on Windows.
Diffstat (limited to 'win/tkWinTest.c')
-rw-r--r--win/tkWinTest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinTest.c b/win/tkWinTest.c
index 04ecb97..2cdea38 100644
--- a/win/tkWinTest.c
+++ b/win/tkWinTest.c
@@ -432,7 +432,7 @@ TestfindwindowObjCmd(
int objc, /* Number of arguments. */
Tcl_Obj *const objv[]) /* Argument values. */
{
- const TCHAR *title = NULL, *class = NULL;
+ const WCHAR *title = NULL, *class = NULL;
Tcl_DString titleString, classString;
HWND hwnd = NULL;
int r = TCL_OK;
@@ -510,7 +510,7 @@ TestgetwindowinfoObjCmd(
long hwnd;
Tcl_Obj *dictObj = NULL, *classObj = NULL, *textObj = NULL;
Tcl_Obj *childrenObj = NULL;
- TCHAR buf[512];
+ WCHAR buf[512];
int cch, cchBuf = 256;
Tcl_DString ds;
@@ -539,7 +539,7 @@ TestgetwindowinfoObjCmd(
Tcl_DictObjPut(interp, dictObj, Tcl_NewStringObj("id", 2),
Tcl_NewLongObj(GetWindowLongA(INT2PTR(hwnd), GWL_ID)));
- cch = GetWindowText(INT2PTR(hwnd), (LPTSTR)buf, cchBuf);
+ cch = GetWindowText(INT2PTR(hwnd), (LPWSTR)buf, cchBuf);
Tcl_WinTCharToUtf(buf, cch * sizeof (WCHAR), &ds);
textObj = Tcl_NewStringObj(Tcl_DStringValue(&ds), Tcl_DStringLength(&ds));
Tcl_DStringFree(&ds);