summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-25 11:08:32 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-25 11:08:32 (GMT)
commite32765f9cc3dae186aa1ddf4f395280ce115c9b3 (patch)
tree6263c98702b09bc6e2f7bf664d84dc5fd604f7bb /win
parent1916575eb7e519f88b930218c3dc7311cd9c1da5 (diff)
downloadtcl-e32765f9cc3dae186aa1ddf4f395280ce115c9b3.zip
tcl-e32765f9cc3dae186aa1ddf4f395280ce115c9b3.tar.gz
tcl-e32765f9cc3dae186aa1ddf4f395280ce115c9b3.tar.bz2
truncation in SetWindowLongPtr data
Diffstat (limited to 'win')
-rw-r--r--win/tclWinDde.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinDde.c b/win/tclWinDde.c
index 0d5f7d7..291a244 100644
--- a/win/tclWinDde.c
+++ b/win/tclWinDde.c
@@ -814,9 +814,9 @@ DdeClientWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
ddeEnumServices *es;
es = (ddeEnumServices*)lpcs->lpCreateParams;
#ifdef _WIN64
- SetWindowLongPtr(hwnd, GWLP_USERDATA, (long)es);
+ SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR) es);
#else
- SetWindowLong(hwnd, GWL_USERDATA, (long)es);
+ SetWindowLong(hwnd, GWL_USERDATA, (LONG) es);
#endif
break;
}