projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Somewhat gruesome tweak to use SetClassLongPtr where available and degrade
[u/mdw/putty]
/
windows
/
window.c
diff --git
a/windows/window.c
b/windows/window.c
index
e5aa45b
..
97b205a
100644
(file)
--- a/
windows/window.c
+++ b/
windows/window.c
@@
-1010,7
+1010,7
@@
static void update_mouse_pointer(void)
}
{
HCURSOR cursor = LoadCursor(NULL, curstype);
}
{
HCURSOR cursor = LoadCursor(NULL, curstype);
- SetClassLong
(hwnd, GCL_HCURSOR, (LONG
)cursor);
+ SetClassLong
Ptr(hwnd, GCLP_HCURSOR, (LONG_PTR
)cursor);
SetCursor(cursor); /* force redraw of cursor at current posn */
}
if (force_visible != forced_visible) {
SetCursor(cursor); /* force redraw of cursor at current posn */
}
if (force_visible != forced_visible) {