summaryrefslogtreecommitdiffstats
path: root/win/tclWinSock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-20 21:01:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-20 21:01:44 (GMT)
commit0a6728c33d79445c6e4fc81ab9c78f2aa1f2cd82 (patch)
tree898f83b2086deef0af087ce4fe673972d0126a32 /win/tclWinSock.c
parent213711869322b5aa9b50b4eed31a91f662c058bb (diff)
downloadtcl-0a6728c33d79445c6e4fc81ab9c78f2aa1f2cd82.zip
tcl-0a6728c33d79445c6e4fc81ab9c78f2aa1f2cd82.tar.gz
tcl-0a6728c33d79445c6e4fc81ab9c78f2aa1f2cd82.tar.bz2
Let's use GetWindowLongW/SetWindowLongW on Win32 directly. Missed them because they are not used in Win64.
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r--win/tclWinSock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c
index ed633ef..a397a30 100644
--- a/win/tclWinSock.c
+++ b/win/tclWinSock.c
@@ -3063,7 +3063,7 @@ SocketProc(
#ifdef _WIN64
GetWindowLongPtrW(hwnd, GWLP_USERDATA);
#else
- GetWindowLong(hwnd, GWL_USERDATA);
+ GetWindowLongW(hwnd, GWL_USERDATA);
#endif
switch (message) {
@@ -3081,7 +3081,7 @@ SocketProc(
SetWindowLongPtrW(hwnd, GWLP_USERDATA,
(LONG_PTR) ((LPCREATESTRUCT)lParam)->lpCreateParams);
#else
- SetWindowLong(hwnd, GWL_USERDATA,
+ SetWindowLongW(hwnd, GWL_USERDATA,
(LONG) ((LPCREATESTRUCT)lParam)->lpCreateParams);
#endif
break;