]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/window.c
Somewhat gruesome tweak to use SetClassLongPtr where available and degrade
[PuTTY.git] / windows / window.c
index e5aa45b70ab79ec8bc7d1425a06d8af5463bf838..97b205a7df02dc8faf203d5e74e48d8fce5d8a33 100644 (file)
@@ -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) {