Update to tk 8.5.19

This commit is contained in:
Zachary Ware
2017-11-24 17:53:51 -06:00
parent 27e7dfc7da
commit c67b328f06
325 changed files with 12511 additions and 12047 deletions

View File

@@ -256,10 +256,13 @@ TkpUseWindow(
return TCL_OK;
}
if (Tcl_GetInt(interp, string, &id) != TCL_OK) {
if (
#ifdef _WIN64
(sscanf(string, "0x%p", &hwnd) != 1) &&
#endif
Tcl_GetInt(interp, string, (int *) &hwnd) != TCL_OK) {
return TCL_ERROR;
}
hwnd = (HWND) INT2PTR(id);
if ((HWND)winPtr->privatePtr == hwnd) {
return TCL_OK;
}