diff options
author | Colin Harrison <colin.harrison@virgin.net> | 2009-07-27 15:49:41 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-07-28 15:17:47 +0100 |
commit | 0524420622df6cbdb3872917906f7b2a6ec02958 (patch) | |
tree | 51e897924319b279bddbd5029b07f3fb0eaa012e | |
parent | b1c3dc6ae226db178420e3b5f297b94afc87c94c (diff) |
Cygwin/X: use GWLP_WNDPROC, GWLP_USERDATA with Get/SetWindowLongPtr
Missed from commit b3751454cbe02ee952bab213e8c3684d429c41b3
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rwxr-xr-x | hw/xwin/windialogs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/xwin/windialogs.c b/hw/xwin/windialogs.c index 0bcf0d7cd..31a3766a6 100755 --- a/hw/xwin/windialogs.c +++ b/hw/xwin/windialogs.c @@ -150,7 +150,7 @@ winURLWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) SetCursor (cursor); return TRUE; } - origCB = (WNDPROC)GetWindowLongPtr(hwnd, GWL_USERDATA); + origCB = (WNDPROC)GetWindowLongPtr(hwnd, GWLP_USERDATA); /* Otherwise fall through to original WndProc */ if (origCB) return CallWindowProc (origCB, hwnd, msg, wParam, lParam); @@ -168,8 +168,8 @@ winOverrideURLButton (HWND hwnd, int id) { WNDPROC origCB; origCB = (WNDPROC)SetWindowLongPtr(GetDlgItem (hwnd, id), - GWL_WNDPROC, (LONG_PTR)winURLWndProc); - SetWindowLongPtr(GetDlgItem (hwnd, id), GWL_USERDATA, (LONG_PTR)origCB); + GWLP_WNDPROC, (LONG_PTR)winURLWndProc); + SetWindowLongPtr(GetDlgItem (hwnd, id), GWLP_USERDATA, (LONG_PTR)origCB); } static void @@ -177,9 +177,9 @@ winUnoverrideURLButton (HWND hwnd, int id) { WNDPROC origCB; origCB = (WNDPROC)SetWindowLongPtr(GetDlgItem (hwnd, id), - GWL_USERDATA, 0); + GWLP_USERDATA, 0); if (origCB) - SetWindowLongPtr(GetDlgItem (hwnd, id), GWL_WNDPROC, (LONG_PTR)origCB); + SetWindowLongPtr(GetDlgItem (hwnd, id), GWLP_WNDPROC, (LONG_PTR)origCB); } |