mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -05:00
Somewhat gruesome tweak to use SetClassLongPtr where available and degrade
nicely elsewhere, which should fix `win64' _properly_. Tested on recent-ish MinGW (with GetWindowLongPtr but not GetClassLongPtr), and VC++ 6.0 with a recent SDK, but not with vanilla VC++. [originally from svn r6535] [this svn revision also touched putty-wishlist]
This commit is contained in:
@ -1010,7 +1010,7 @@ static void update_mouse_pointer(void)
|
||||
}
|
||||
{
|
||||
HCURSOR cursor = LoadCursor(NULL, curstype);
|
||||
SetClassLong(hwnd, GCL_HCURSOR, (LONG)cursor);
|
||||
SetClassLongPtr(hwnd, GCLP_HCURSOR, (LONG_PTR)cursor);
|
||||
SetCursor(cursor); /* force redraw of cursor at current posn */
|
||||
}
|
||||
if (force_visible != forced_visible) {
|
||||
|
Reference in New Issue
Block a user