diff options
Diffstat (limited to 'win/tkWinTest.c')
-rw-r--r-- | win/tkWinTest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tkWinTest.c b/win/tkWinTest.c index 3497fc7..7bd84fd 100644 --- a/win/tkWinTest.c +++ b/win/tkWinTest.c @@ -553,7 +553,7 @@ TestgetwindowinfoObjCmd( Tcl_DictObjPut(interp, dictObj, Tcl_NewStringObj("id", 2), Tcl_NewWideIntObj(GetWindowLongPtr((HWND)(size_t)hwnd, GWL_ID))); - cch = GetWindowText((HWND)(size_t)hwnd, buf, cchBuf); + cch = GetWindowText(INT2PTR(hwnd), (LPWSTR)buf, cchBuf); Tcl_DStringInit(&ds); Tcl_WCharToUtfDString(buf, cch, &ds); textObj = Tcl_NewStringObj(Tcl_DStringValue(&ds), Tcl_DStringLength(&ds)); |