diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-25 11:08:32 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-25 11:08:32 (GMT) |
commit | e32765f9cc3dae186aa1ddf4f395280ce115c9b3 (patch) | |
tree | 6263c98702b09bc6e2f7bf664d84dc5fd604f7bb | |
parent | 1916575eb7e519f88b930218c3dc7311cd9c1da5 (diff) | |
download | tcl-e32765f9cc3dae186aa1ddf4f395280ce115c9b3.zip tcl-e32765f9cc3dae186aa1ddf4f395280ce115c9b3.tar.gz tcl-e32765f9cc3dae186aa1ddf4f395280ce115c9b3.tar.bz2 |
truncation in SetWindowLongPtr data
-rw-r--r-- | win/tclWinDde.c | 4 |
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; } |