summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison@virgin.net>2009-07-27 15:49:41 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2009-07-28 15:17:47 +0100
commit0524420622df6cbdb3872917906f7b2a6ec02958 (patch)
tree51e897924319b279bddbd5029b07f3fb0eaa012e
parentb1c3dc6ae226db178420e3b5f297b94afc87c94c (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-xhw/xwin/windialogs.c10
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);
}