summaryrefslogtreecommitdiffstats
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)
commit384abb5079d560153d85842fab43de21b3d35c7d (patch)
tree6263c98702b09bc6e2f7bf664d84dc5fd604f7bb
parent75ce90a57dd0f8a6b9b8973c4441a62cbece8b75 (diff)
downloadtcl-384abb5079d560153d85842fab43de21b3d35c7d.zip
tcl-384abb5079d560153d85842fab43de21b3d35c7d.tar.gz
tcl-384abb5079d560153d85842fab43de21b3d35c7d.tar.bz2
truncation in SetWindowLongPtr data
-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;
}